Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


#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