aboutsummaryrefslogtreecommitdiff
path: root/src/example/collisiontest.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-19 18:58:01 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-19 18:58:01 +0100
commitdd035ffa17f4573f06316e0ecb83b426f5ed8285 (patch)
treedc6626dcef4b91aa33b704fc705ad9a8f07dd0d0 /src/example/collisiontest.cpp
parentac692aa8207fb2dcc059e7761098cd98749154a0 (diff)
updated coments and reverted test cmake
Diffstat (limited to 'src/example/collisiontest.cpp')
-rw-r--r--src/example/collisiontest.cpp5
1 files changed, 2 insertions, 3 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});