summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2018-10-04 21:21:28 +0200
committerGitHub <[email protected]>2018-10-04 21:21:28 +0200
commit35ee4fa685c2430ef65a323d1f24f148fa81e44f (patch)
treea2cbb6bf57eb401adb30fe6e63ebc35bb1748881 /examples
parent589152b658b68065495087fc4174eb5a6d447b74 (diff)
parent35634f37c85ddc0e0f78b8e007250fa0acbd2365 (diff)
downloadraylib-35ee4fa685c2430ef65a323d1f24f148fa81e44f.tar.gz
raylib-35ee4fa685c2430ef65a323d1f24f148fa81e44f.zip
Merge pull request #653 from pamarcos/physac_fix
[physac] Fix physac's fixed time step
Diffstat (limited to 'examples')
-rw-r--r--examples/physac/physics_restitution.c3
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