From 3d2428af8e8d9d49b4ade52d4806a7dae4cf1ab8 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 7 Nov 2024 20:03:14 +0100 Subject: merge #25 + nitpicking --- src/test/PhysicsTest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/test') 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(0); if (transforms.empty()) { game_object = new GameObject(0, "", "", Vector2{0, 0}, 0, 0); - game_object->add_component(Rigidbody::RigidbodyData{ + game_object->add_component(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(0); Transform & transform = transforms.front().get(); -- cgit v1.2.3