Angle Between two objects.

shenakan

05-04-2008 21:54:49

I have two obejects connected by a NXD6JointDesc. They rotate like a wheel. I would like to get the angle of the rotation... What is the easy way to do ? Is It possible to get the information from the joint ?

- After that I would like to setup the angle during the simulation. Is it possible ?
Thank for your answer.

shenakan

07-04-2008 19:08:33

no idea. I use NXD6Joint for this. Is this help you to get me an answer ?

NickM

08-04-2008 06:45:27

I can't give you an exact answer but I think you would need to get the global orientation of each object and then do some calculation to get the angle between them, I don't know the calculation off the top of my head but you could try looking here...

http://www.ogre3d.org/wiki/index.php/Quaternion_and_Rotation_Primer#Quaternion_Rotations

shenakan

08-04-2008 16:29:24

I can't give you an exact answer but I think you would need to get the global orientation of each object and then do some calculation to get the angle between them, I don't know the calculation off the top of my head but you could try looking here...

http://www.ogre3d.org/wiki/index.php/Quaternion_and_Rotation_Primer#Quaternion_Rotations



I am ok with your answer but how it is possible to change the angle on the joint after that ?