[ODE] Problem with rolling
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Sun Oct 8 08:59:15 MST 2006
It has been my experience that Euler angles are almost never a good
idea. Typically, just keeping a quaternion is more convenient.
The one time when Euler-like angles are useful, is when controlling
things from the mouse (like a first-person camera) where you can map the
controller input directly to Euler angle values, and then convert to
quaternion each frame.
Cheers,
/ h+
Lubomir Kazasov wrote:
> /
> /Do you mean :
>
> / bodyQuat = rollQuat * bodyQuat * YawPitchQuat ;/* ?
>
> *is the use of Euler Angles a good idea or there is a better approach?
>
> thanks
>
>
>
>
> Am 07:28 08.10.2006 schrieben Sie:
>> Express roll as a separate quaternion, which you apply first.
>>
>>
>> Cheers,
>>
>> / h+
>>
>>
>> Lubomir Kazasov wrote:
>>> What is the best way to become the body yawing always around the
>>> global z-axis independent from the pitch and the roll. By pitch and
>>> roll the body have to rotate around local axes x(for pitch) and y(for
>>> roll).
More information about the ODE
mailing list