[ODE] Daft Maths Question

Chunky Kibbles chunky at icculus.org
Thu Jan 6 17:37:35 MST 2005


Having got my first ODE program working correctly yesterday, I'm being a
little braver today.

Only problem is, that this time all my bodies don't start off facing
along a specific axis.

I have a simple rotation, say, 0.5rad around the Z axis. How do I
represent this in a manner that dBodySetRotation or dBodySetQuaternion
can understand? If degrees are more suitable, I'm fine with that.

Having read up about Quaternions, it looks like there isn't a truly
simple answer for that, but for just the original setting of a body
somewhere in space, I think that SetRotation will do fine... if I
understand what it is that it actually does...

Thank-you very much,
Gary (-;


More information about the ODE mailing list