[ODE] Rotation matrix - setting euler, etc.

STenyaK (Bruno Gonzalez) stenyak at gmx.net
Fri Mar 24 02:50:40 MST 2006


Maybe you've found the reason why euler angles are recommended not to be  
used.
http://en.wikipedia.org/wiki/Gimbal_lock

On Fri, 24 Mar 2006 05:24:18 +0100, Gussimulator  
<gussimulator at yahoo.com.ar> wrote:

> My problem relies mostly on my getpitch() routine
> the rotation seems ok on the pitch axis, but the objects spins from  
> times to times.. perhaps im not doing the conversion correctly. but I'm  
> sure I am !
>
> Im trying to convert the pitch from the quaternion rotation, but the  
> same issue popups..
>
>
>
>
> ----- Original Message ----- From: "STenyaK (Bruno Gonzalez)"  
> <stenyak at gmx.net>
> To: "Gussimulator" <gussimulator at yahoo.com.ar>
> Sent: Friday, March 24, 2006 12:25 AM
> Subject: Re: [ODE] Rotation matrix - setting euler, etc.
>
>
>> You may want to test this code:
>> http://svn.sourceforge.net/viewcvs.cgi/motorsport/trunk/src/common/quaternion.cpp?view=markup&rev=374
>>
>> On Fri, 24 Mar 2006 03:40:04 +0100, Gussimulator
>> <gussimulator at yahoo.com.ar> wrote:
>>
>>> Hi, I've nailed the Y and Z rotation problems but I'm still getting
>>> problems with the pitch (would be X).
>>> Are there any good source examples that would suit ODE's needs?, I need
>>> to be able to convert from euler to rotation matrix and vice versa. Im
>>> able to do this but ODE doesnt seem to like my rotation matrix, its
>>> giving wrong rotations all the time!.
>>>
>>> Thanks
>>
>>
>>
>> -- Saludos,
>>      STenyaK
>>
>> _______________________________________________
>> Site:   http://1ksurvivor.homeip.net  <1kSurvivor>
>>          http://motorsport-sim.org     <Motorsport>
>>          http://kwh.iespana.es         <KuantikalWareHouse>
>>          http://emuletutorial.info     <EmuleTutorial>
>> ICQ:    153709484
>> Mail:   stenyak AT gmx DOT net
>> _______________________________________________
>> ODE mailing list
>> ODE at q12.org
>> http://q12.org/mailman/listinfo/ode
>



-- 
Saludos,
     STenyaK

_______________________________________________
Site:   http://1ksurvivor.homeip.net  <1kSurvivor>
         http://motorsport-sim.org     <Motorsport>
         http://kwh.iespana.es         <KuantikalWareHouse>
         http://emuletutorial.info     <EmuleTutorial>
ICQ:    153709484
Mail:   stenyak AT gmx DOT net


More information about the ODE mailing list