Tagged Questions
3
votes
1answer
156 views
Quaternion Look At with Up vector
I have implemented a "look at" method for my screen elements and it almost works how I want it to work.
The ScreenElement class uses a R3 Vector and a Quaternion to determine the position and ...
1
vote
2answers
183 views
convert orientation vec3 to a rotation matrix
I've got a normalized vec3 that represents an orientation.
Each frame of animation, an object's orientation changes slightly, so I add a delta vector to the orientation vector and then normalize to ...
5
votes
1answer
960 views
Rotate object to face player
This is probably a simple vector question, but I'm not sure how to do it.
I have an object at vector position (ox,oy). Potentially every update, the user walks around the screen, and will be at ...
3
votes
1answer
189 views
Follow point of interest by applying torque
Given a body with an orientation angle and a point of interest or targetAngle, is there an elegant solution for keeping the body oriented towards the point of interest by applying torque or impulses?
...