Automatic interpolation of movement

Post Reply
albenchers
Posts: 6
Joined: Sun Jan 17, 2016 7:32 pm

Automatic interpolation of movement

Post by albenchers »

On http://bulletphysics.org/mediawiki-1.5. ... _The_World at the bottom it says:
When you pass Bullet maxSubSteps > 1, it will interpolate movement for you. This means that if your fixedTimeStep is 3 units, and you pass a timeStep of 4, then it will do exactly one tick, and estimate the remaining movement by 1/3.
But I also saw this advertised as a feature of Motion States. Does this mean you can get the interpolation behavior without actually using Motion States? Perhaps Motion States are just re-using this feature of the step simulation implementation?
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: Automatic interpolation of movement

Post by Basroil »

If you check the code for btDiscreteDynamicsWorld, you'll see it internally uses motion states to do the interpolation
Post Reply