Fix Physac examples to be run without creating new thread

This commit is contained in:
Pablo Marcos Oltra 2018-07-29 13:09:30 +02:00
parent e82505b873
commit 907e27ef4e
6 changed files with 54 additions and 35 deletions

View file

@ -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;
}