Help with quaternions to have model look at point.

Hi

I'm trying to figure quaternions. If I have a Point Vector(4,3,1) with a Quaternion for example (.7,1,0.0). How do I go about it to look at something with a Point of (10,5,4) but making make sure the Quaternion Rotation angle is directed at the point?

In english, I need to get a Drone to move to a vector difference while facing that new location.

Vivienne


I'm using this engine functions.

http://urho3d.github.io/documentation/1.4/class_urho3_d_1_1_rigid_body.html#ac9596fb9a328f5d0ae6c5036f4736bd0

http://urho3d.github.io/documentation/1.4/class_urho3_d_1_1_quaternion.html#a393bf2e5601c024320f420214af0e3ec
Last edited on
closed account (48T7M4Gy)
Try using matrices. Write your own matrix class or download?

Directing a drone would be a good, but fairly straightforward application in 3D geometry I expect.
Topic archived. No new replies allowed.