In my application, which uses Bullet Physics, the "speed" of the simulation varies over time, which results in objects sometimes moving slower or faster and sometimes even jittering randomly.
Here's a small video of it: https://www.youtube.com/watch?v=5wXpZUOIdYE (switch to 720p to get 60 FPS footage, otherwise the jitter is less noticeable)
At first, it runs like normal. Then it gets slower and from 0:25 on, you can really see the object jumping around.
In this demo, There is a rigid body with an empty collision shape with a mass of 0.0 aligned with the player. When the cup is being clicked, a fixed constraint between the cups rigid body and the empty one is being created.
But I remember having this issue in other situations some time ago as well, e.g. when just throwing a couple of dynamic objects into the scene.
This is how I call stepSimulation:
Code: Select all
physics.dynamics_world->stepSimulation(time, 10);
I can't really imagine what could cause such behavior...
Thanks in advance!