From 35634f37c85ddc0e0f78b8e007250fa0acbd2365 Mon Sep 17 00:00:00 2001 From: Pablo Marcos Oltra Date: Sun, 23 Sep 2018 13:55:39 +0200 Subject: Fix physac's fixed time step --- examples/physac/physics_restitution.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') 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 -- cgit v1.2.3