BtRigidBody and applyForce

Post Reply
ryp
Posts: 1
Joined: Mon Oct 19, 2015 8:31 am

BtRigidBody and applyForce

Post by ryp »

Hello guys,

I'm porting the physics of an existing vehicle to bullet. My problem is the way I'm supposed to feed these forces to benefit from bullet's integrator.

What I have now is a callback that i registered with bullet to be called before each internal tick.
At this point I set all the forces with applyForce for my vehicle, and let bullet compute. This WORKS.

Is this the way I'm supposed to feed forces ?
The thing is, I don't know if bullet is using an interpolation on the forces I feed, or if it just accept these forces as constant over the tick interval.
benelot
Posts: 350
Joined: Sat Jul 04, 2015 10:33 am
Location: Bern, Switzerland
Contact:

Re: BtRigidBody and applyForce

Post by benelot »

From what I know it takes them as constant over the timestep and applies them. If you get accurate results, you can still check the force feedback to see if your values come out again.
Post Reply