Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculation of acceleration
09-26-2012, 03:12 AM, (This post was last modified: 09-26-2012, 05:16 AM by kidice.)
#3
RE: Calculation of acceleration
(09-25-2012, 02:53 PM)NaN Wrote: getDeltaLinearVelocity() is a bullet internal method used in the constraint solver. You have to calculate the acceleration yourself from current and previous velocity.
new_velocity = body->getLinearVelocity();
acceleration = (new_velocity - old_velocity) / dt;
old_velocity = new_velocity;

hi nan!
thank you! that piece of code worked for me. I think, I have to get more familiar with bullet Smile
Reply


Messages In This Thread
Calculation of acceleration - by kidice - 09-25-2012, 09:01 AM
RE: Calculation of acceleration - by NaN - 09-25-2012, 02:53 PM
RE: Calculation of acceleration - by kidice - 09-26-2012, 03:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)