[ODE] testbuggy in opengl performer

Jon Watte hplus-ode at mindcontrol.org
Mon Jan 17 08:38:41 MST 2005


How did you convert the quaternions between ODE and Performer? Beware that ODE stores the "w" component FIRST in the quaternion.

Cheers,

            / h+

  -----Original Message-----
  From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of rhk-- at nate.com
  Sent: Monday, January 17, 2005 1:16 AM
  To: ode at q12.org
  Subject: [ODE] testbuggy in opengl performer


   
  Hello.

  My simulation is between a car and a box, standing.

  A car runs to a box with speed, 

  after colliding, the box will bounce or something.

  I use testbuggy (change a little) in opengl performer.

  I printed the positoin and rotation of the box, body_g.
  ===========================================================
  P = dBodyGetPosition( body_g );
  qu=dBodyGetQuaternion(body_g);
   
  pfQuat pq(qu[1],qu[2],qu[3],qu[0]);
  Rot.makeQuat(pq);
  ===========================================================
  In ODE, it works well, 

  but when I use the same function in my OpenGL Performer program, 

  it jumps and crazily rotate.

  Instead of drawstuff simLoop function, 

  I use do... while Loop. 

  What's wrong?

  Please help me!!


  -

             
             
             
                                   새로운 형태의 이포스트카드 서비스  
                                 
                                예쁜 우편 엽서로 마음을 전달 
                                 
                                     싸이월드 페이퍼까지 찾아준다!  
                                 
                                새로워진 네이트닷컴 써보셨나요? 
                                 
                               
                         
                   
             
       
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://hook.org/pipermail/ode/attachments/20050117/fe449c07/attachment.htm


More information about the ODE mailing list