From a9649b97ddfb0b39f8b3c27b14a7d855b1e824fa Mon Sep 17 00:00:00 2001 From: arngo <27396817+arngo@users.noreply.github.com> Date: Sat, 5 Nov 2022 21:57:15 -0400 Subject: add times parameter to step function --- src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 50ccd47..830b229 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,9 +33,7 @@ int main(void) // Draw //---------------------------------------------------------------------------------- - for (int i = 0; i < 50000; i++) { - Physics::step(0.001); - } + Physics::step(0.001,50000); std::cout << std::to_string(Vector2Distance(Physics::ship.position, Physics::rock.position)) << std::endl; BeginDrawing(); -- cgit v1.2.3