aboutsummaryrefslogtreecommitdiff
path: root/src/test/PhysicsTest.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 20:03:14 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 20:03:14 +0100
commit3d2428af8e8d9d49b4ade52d4806a7dae4cf1ab8 (patch)
tree30d908c427ff9b4ee53402fbf52cb15704e58623 /src/test/PhysicsTest.cpp
parentfde229c24dcbd1ed844880a35eabddb88279802b (diff)
merge #25 + nitpicking
Diffstat (limited to 'src/test/PhysicsTest.cpp')
-rw-r--r--src/test/PhysicsTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/PhysicsTest.cpp b/src/test/PhysicsTest.cpp
index 6b8c4d8..5385962 100644
--- a/src/test/PhysicsTest.cpp
+++ b/src/test/PhysicsTest.cpp
@@ -20,7 +20,7 @@ protected:
= mgr.get_components_by_id<Transform>(0);
if (transforms.empty()) {
game_object = new GameObject(0, "", "", Vector2{0, 0}, 0, 0);
- game_object->add_component<Rigidbody>(Rigidbody::RigidbodyData{
+ game_object->add_component<Rigidbody>(Rigidbody::Data{
.mass = 1,
.gravity_scale = 1,
.body_type = Rigidbody::BodyType::DYNAMIC,
@@ -28,7 +28,8 @@ protected:
.max_angular_velocity = 10,
.constraints = {0, 0},
.use_gravity = true,
- .bounce = false});
+ .bounce = false,
+ });
}
transforms = mgr.get_components_by_id<Transform>(0);
Transform & transform = transforms.front().get();