diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-19 18:58:01 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-19 18:58:01 +0100 |
commit | dd035ffa17f4573f06316e0ecb83b426f5ed8285 (patch) | |
tree | dc6626dcef4b91aa33b704fc705ad9a8f07dd0d0 /src/example | |
parent | ac692aa8207fb2dcc059e7761098cd98749154a0 (diff) |
updated coments and reverted test cmake
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/collisiontest.cpp | 5 | ||||
-rw-r--r-- | src/example/game.cpp | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/example/collisiontest.cpp b/src/example/collisiontest.cpp index 95999c6..b0cb92e 100644 --- a/src/example/collisiontest.cpp +++ b/src/example/collisiontest.cpp @@ -75,8 +75,7 @@ class MyScript1 : public Script { } break; - } - case Keycode::Q: { + }case Keycode::Q: { if(movement){ movement = false; Rigidbody & tf = this->get_component<Rigidbody>(); @@ -136,7 +135,7 @@ public: game_object1.add_component<Rigidbody>(Rigidbody::Data{ .gravity_scale = 0, .body_type = Rigidbody::BodyType::KINEMATIC, - .elastisity_coefficient = 1, + .elasticity_coefficient = 1, }); // add box with boxcollider game_object1.add_component<BoxCollider>(vec2{20, 20}); diff --git a/src/example/game.cpp b/src/example/game.cpp index f757d5f..f5b6f4f 100644 --- a/src/example/game.cpp +++ b/src/example/game.cpp @@ -227,7 +227,7 @@ public: .body_type = Rigidbody::BodyType::DYNAMIC, .linear_velocity = {0, 0}, .constraints = {0, 0, 0}, - .elastisity_coefficient = 1, + .elasticity_coefficient = 1, }); // add box with boxcollider game_object1.add_component<BoxCollider>(vec2{20, 20}); @@ -260,7 +260,7 @@ public: .body_type = Rigidbody::BodyType::STATIC, .linear_velocity = {0, 0}, .constraints = {0, 0, 0}, - .elastisity_coefficient = 1, + .elasticity_coefficient = 1, }); // add box with boxcollider game_object2.add_component<BoxCollider>(vec2{20, 20}); |