summaryrefslogtreecommitdiffhomepage
path: root/src/main.cpp
diff options
context:
space:
mode:
authorarngo <[email protected]>2022-11-05 21:57:15 -0400
committerarngo <[email protected]>2022-11-05 21:57:15 -0400
commita9649b97ddfb0b39f8b3c27b14a7d855b1e824fa (patch)
tree272b950a831cdd54bcfc1d0221463bfb8d1ddac8 /src/main.cpp
parentceb76492b07dbeda6949f35008999d0f400e49fd (diff)
downloadorbital_game-a9649b97ddfb0b39f8b3c27b14a7d855b1e824fa.tar.gz
orbital_game-a9649b97ddfb0b39f8b3c27b14a7d855b1e824fa.zip
add times parameter to step function
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 1 insertions, 3 deletions
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();