diff options
| author | arngo <[email protected]> | 2022-11-05 21:57:15 -0400 |
|---|---|---|
| committer | arngo <[email protected]> | 2022-11-05 21:57:15 -0400 |
| commit | a9649b97ddfb0b39f8b3c27b14a7d855b1e824fa (patch) | |
| tree | 272b950a831cdd54bcfc1d0221463bfb8d1ddac8 /src/main.cpp | |
| parent | ceb76492b07dbeda6949f35008999d0f400e49fd (diff) | |
| download | orbital_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.cpp | 4 |
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(); |
