Archived

This topic is now archived and is closed to further replies.

luck_bird_bj

How can track the position and rotation in world corordinate?

Recommended Posts

Image a 3ds model, for example. an persion with arms, when the person changes his position and rotation (in world coordinate), his arms also change rotation and position (in local coordinate).How can i track the persion''s position and his arm''s position,both in world coordinate? I have read some articles about extract infomation from projection and modelview matrix plus camera''s position in OpenGL,but fail. can anyone give me an example or tuturial? thanks!!

Share this post


Link to post
Share on other sites
when you are changing postion and rotation im assuming your useing glTranslateX and glRotateX so all you need to do in this case is know the point on the hand of the model and rotate it manually useing some math. such math can be found in the Articles & Resources if you don''t know it.

Share this post


Link to post
Share on other sites