[ODE] Daft Maths Question
chunky at icculus.org
Thu Jan 6 22:00:35 MST 2005
On Thu, Jan 06, 2005 at 05:37:35PM -0500, Chunky Kibbles wrote:
> 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...
Ah. My bad, sorry.
Didn't see dRFromAxisAndAngle in the docs. Now I've found it, and it was
exactly what I wanted.
More information about the ODE