Bug report on btRigidBody setVelocity and applyImpulse

thloh85
Posts: 26
Joined: Mon Feb 09, 2009 10:07 am

Bug report on btRigidBody setVelocity and applyImpulse

Post by thloh85 »

Hello,

I found one problem using both the method. Try creating a scene with one object. Then constantly increment the velocity or constantly applyImpulse to it. You'll sometimes see a sudden spike increase in the simulation (ie. if you setVelocity of Y to previousVelocityY+1, this step doesn't calculate the gravity and reduce the velocity, thus the current velocity is previousVelocityY+1 but not previousVelocity+1-(forceY*timeStep).

Is this a problem?

Thanks a lot for looking into this.