aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/example')
-rw-r--r--src/example/collisiontest.cpp5
-rw-r--r--src/example/game.cpp4
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});