|
I have quaternion values imported from motion capture software. I would like to apply these rotation values to the in-game object to make the rotation match the mocap data. Is there a function to set the rotation of an object that takes 4 quaternion values as input?
(comments are locked)
|
|
Make the quaternion with your x,y,z,w values
http://unity3d.com/support/documentation/ScriptReference/Quaternion.Quaternion.html And then set Rather than 'transform.eulerAngles = quaternion.eulerAngles', you can just write 'transform.rotation = quaternion'.
Mar 22 '11 at 07:56 PM
Jesse Anders
Awesome. I'm still learning too.
Mar 22 '11 at 08:06 PM
flaviusxvii
(comments are locked)
|
