From 907e27ef4e7a4220142e9e7ccfe711ae86dd6a4e Mon Sep 17 00:00:00 2001 From: Pablo Marcos Oltra Date: Sun, 29 Jul 2018 13:09:30 +0200 Subject: Fix Physac examples to be run without creating new thread --- examples/physac/physics_movement.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/physac/physics_movement.c') diff --git a/examples/physac/physics_movement.c b/examples/physac/physics_movement.c index 3ca69671..4c4f259f 100644 --- a/examples/physac/physics_movement.c +++ b/examples/physac/physics_movement.c @@ -17,6 +17,7 @@ #include "raylib.h" #define PHYSAC_IMPLEMENTATION +#define PHYSAC_NO_THREADS #include "physac.h" #define VELOCITY 0.5f @@ -64,6 +65,8 @@ int main() { // Update //---------------------------------------------------------------------------------- + RunPhysicsStep(); + if (IsKeyPressed('R')) // Reset physics input { // Reset movement physics body position, velocity and rotation @@ -127,4 +130,3 @@ int main() return 0; } - -- cgit v1.2.3