Total force differs with update timestep?
opened this issue · comments
I found this in the documentation:
"Note that when you call the previous methods, the specified force/torque will be added to the total force/torque applied to the rigid body and that at the end of each call to the PhysicsWorld::update(), the total force/torque of all the rigid bodies will be reset to zero. Therefore, you need to call the previous methods during several frames if you want the force/torque to be applied during a certain amount of time."
I take this to mean that a different total force will be applied to a body depending on the timeStep given to PhysicsWorld::update().
What happens if a force is given to a body during the simulation, such as in a collision? I presume that will not create different behaviour based on the update timeStep.
The applied force/torque is applied (integrated) exactly as other external forces (like gravity).
At each call of the PhysicsWorld::update()
method, the new velocity is computed this way:
where
So it means that if a force of 9
I hope this helps.
Thank you Daniel.