mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 07:20:40 +00:00
Physics timing
This commit is contained in:
parent
8a39f5e7b6
commit
714362fc60
5 changed files with 13 additions and 23 deletions
|
|
@ -123,8 +123,8 @@ void BtWorld::tickPhysics( U32 elapsedMs )
|
|||
// Convert it to seconds.
|
||||
const F32 elapsedSec = (F32)elapsedMs * 0.001f;
|
||||
|
||||
// Simulate... it is recommended to always use Bullet's default fixed timestep/
|
||||
mDynamicsWorld->stepSimulation( elapsedSec * mEditorTimeScale );
|
||||
// Simulate
|
||||
mDynamicsWorld->stepSimulation( elapsedSec * mEditorTimeScale, smPhysicsMaxSubSteps, smPhysicsStepTime);
|
||||
|
||||
mIsSimulating = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue