Set fixed timestep to delta time by default

This commit is contained in:
n00b
2024-11-30 23:28:30 -05:00
parent 2a78f8cf81
commit f008cf839b
3 changed files with 9 additions and 5 deletions

View File

@@ -307,6 +307,7 @@ struct rc_physicsWorld2D_obj
b2World* world;
rc_contactListener_obj* contact_listener;
float time_stamp;
float timeStep = 1/60.0; //the length of time passed to simulate (seconds)
int velocityIterations = 8; //how strongly to correct velocity
int positionIterations = 3; //how strongly to correct position