Fix physac's fixed time step
This commit is contained in:
parent
589152b658
commit
35634f37c8
2 changed files with 37 additions and 37 deletions
|
@ -51,6 +51,9 @@ int main()
|
|||
circleC->restitution = 1;
|
||||
|
||||
SetTargetFPS(60);
|
||||
|
||||
// Restitution demo needs a very tiny physics time step for a proper simulation
|
||||
SetPhysicsTimeStep(1.0/60.0/100 * 1000);
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
// Main game loop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue