Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualHypnotiC

Posted 05 April 2013 - 06:32 PM

I haven't known much about quaternions yet, but it seems that something is wrong with your rotation matrix multiplication:

Should    

      ball_new = ball_old * ball;

     ball_old = ball;

be 

     ball_new = ball * ball_old;

     ball_old = ball_new; ?

 

Since we are concatenating the newly constructed rotation to the accumulated rotation so far. 

(Seems ball_new is the accumulative rotation matrix)

 

 

 


#2HypnotiC

Posted 05 April 2013 - 06:32 PM

I haven't known much about quaternions yet, but it seems that something is wrong with your rotation matrix multiplication:

Should    

      ball_new = ball_old * ball;

     ball_old = ball;

be 

     ball_new = ball * ball_old;

     ball_old = ball_new; ?

 

Since we are concatenating the newly constructed rotation to the accumulated rotation so far. 

(Seems ball_new is the accumulative rotation matrix)

 

And I don't see you use ball_old anywhere other than the line above, how you are intended to use it?

 

 


#1HypnotiC

Posted 05 April 2013 - 06:28 PM

I haven't known much about quaternions yet, but it seems that something is wrong with your rotation matrix multiplication:

Should    

      ball_new = ball_old * ball;

be 

     ball_new = ball * ball_old ?

 

Since we are concatenating the newly constructed rotation to the accumulated rotation so far. 

(Seems ball_new is the accumulative rotation matrix)

 

And I don't see you use ball_old anywhere other than the line above, how you are intended to use it?

 

 

 


PARTNERS