diff options
| author | Pablo Marcos Oltra <[email protected]> | 2018-09-23 13:55:39 +0200 |
|---|---|---|
| committer | Pablo Marcos Oltra <[email protected]> | 2018-10-04 18:29:50 +0200 |
| commit | 35634f37c85ddc0e0f78b8e007250fa0acbd2365 (patch) | |
| tree | a2cbb6bf57eb401adb30fe6e63ebc35bb1748881 /examples | |
| parent | 589152b658b68065495087fc4174eb5a6d447b74 (diff) | |
| download | raylib-35634f37c85ddc0e0f78b8e007250fa0acbd2365.tar.gz raylib-35634f37c85ddc0e0f78b8e007250fa0acbd2365.zip | |
Fix physac's fixed time step
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/physac/physics_restitution.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/physac/physics_restitution.c b/examples/physac/physics_restitution.c index d2ec49db..197e6eb5 100644 --- a/examples/physac/physics_restitution.c +++ b/examples/physac/physics_restitution.c @@ -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 |
