diff options
| author | Pablo Marcos Oltra <[email protected]> | 2018-07-29 13:09:30 +0200 |
|---|---|---|
| committer | Pablo Marcos Oltra <[email protected]> | 2018-07-29 21:32:39 +0200 |
| commit | 907e27ef4e7a4220142e9e7ccfe711ae86dd6a4e (patch) | |
| tree | 1829443c7f811914d75a626aa1b60c657a4b76a4 /examples/physac/physics_restitution.c | |
| parent | e82505b873370b8f3a914a079062c21e64353210 (diff) | |
| download | raylib-907e27ef4e7a4220142e9e7ccfe711ae86dd6a4e.tar.gz raylib-907e27ef4e7a4220142e9e7ccfe711ae86dd6a4e.zip | |
Fix Physac examples to be run without creating new thread
Diffstat (limited to 'examples/physac/physics_restitution.c')
| -rw-r--r-- | examples/physac/physics_restitution.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/physac/physics_restitution.c b/examples/physac/physics_restitution.c index 8e26c93f..d2ec49db 100644 --- a/examples/physac/physics_restitution.c +++ b/examples/physac/physics_restitution.c @@ -17,6 +17,7 @@ #include "raylib.h" #define PHYSAC_IMPLEMENTATION +#define PHYSAC_NO_THREADS #include "physac.h" int main() @@ -57,6 +58,8 @@ int main() { // Update //---------------------------------------------------------------------------------- + RunPhysicsStep(); + if (IsKeyPressed('R')) // Reset physics input { // Reset circles physics bodies position and velocity @@ -120,4 +123,3 @@ int main() return 0; } - |
