aboutsummaryrefslogtreecommitdiff
path: root/src/example/collisiontest.cpp
diff options
context:
space:
mode:
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});