How do you actually use quaternions?

Hi

I'm trying to make an object rotate in real time, locally, dependending on the local rotation or position of other objects

Wire parameters is not quite doing the trick, so I believe that the solution might be to assign the RotationScript controller directly replacing the default Rotation:Euler XYZ, instead of just creating scripts inside the Rotation:EulerXYZ>X_Axis, for instance.

The problem is that's in quaternions

I watched the advanced "Matrix Explanied" videos, but it still elludes me how to actually use it. Is there some examples on how to use full quaternions if I replace the default Rotation:EulerXYZ by the RotationScript controller?

Thank you very much

- Nelson Baietti

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dimwalker's picture

Don't sure if I get your

Don't sure if I get your question right. Here is some examples of working with quaternions:

Get current rotation of bip01 in quat
biped.getTransform $bip01 #rotation

Set rotation
biped.setTransform $bip01 #rotation (quat 0 0 0.707106 0.707107) false

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.