diff options
| author | Ray <[email protected]> | 2018-08-03 12:47:53 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-08-03 12:47:53 +0200 |
| commit | d4bb444fe502c85e1b93e27da58d965ed7b76e74 (patch) | |
| tree | 92b867a360d2db37b0d7b2c41319046944b5a249 /examples/physac/physics_friction.c | |
| parent | d999e5a016446c74bfb2c2b55febcf89fa46e527 (diff) | |
| parent | 907e27ef4e7a4220142e9e7ccfe711ae86dd6a4e (diff) | |
| download | raylib-d4bb444fe502c85e1b93e27da58d965ed7b76e74.tar.gz raylib-d4bb444fe502c85e1b93e27da58d965ed7b76e74.zip | |
Merge pull request #609 from pamarcos/fix_physac_examples
[physac] Fix Physac examples to be run without creating new thread
Diffstat (limited to 'examples/physac/physics_friction.c')
| -rw-r--r-- | examples/physac/physics_friction.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/physac/physics_friction.c b/examples/physac/physics_friction.c index b4cc571d..99491eeb 100644 --- a/examples/physac/physics_friction.c +++ b/examples/physac/physics_friction.c @@ -17,6 +17,7 @@ #include "raylib.h" #define PHYSAC_IMPLEMENTATION +#define PHYSAC_NO_THREADS #include "physac.h" int main() @@ -71,6 +72,8 @@ int main() { // Update //---------------------------------------------------------------------------------- + RunPhysicsStep(); + if (IsKeyPressed('R')) // Reset physics input { // Reset dynamic physics bodies position, velocity and rotation @@ -141,4 +144,3 @@ int main() return 0; } - |
