diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-21 17:04:58 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-21 17:04:58 +0100 |
commit | ea95685b4dd2adf09a9be4e2dd9233d0cf98b1ef (patch) | |
tree | 2877243b80b0c026db7a2a618a15677156f41a56 /src/test/PhysicsTest.cpp | |
parent | adbd81d3937a1363af312202c7e4b5ec0bf3458d (diff) |
Minor changes due to templating of Vector2
Diffstat (limited to 'src/test/PhysicsTest.cpp')
-rw-r--r-- | src/test/PhysicsTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/PhysicsTest.cpp b/src/test/PhysicsTest.cpp index 1e37c26..4fd9b14 100644 --- a/src/test/PhysicsTest.cpp +++ b/src/test/PhysicsTest.cpp @@ -20,12 +20,12 @@ public: vector<reference_wrapper<Transform>> transforms = mgr.get_components_by_id<Transform>(0); if (transforms.empty()) { - auto entity = mgr.new_object("", "", Vector2{0, 0}, 0, 0); + auto entity = mgr.new_object("", "", Vector2<double>{0, 0}, 0, 0); entity.add_component<Rigidbody>(Rigidbody::Data{ .mass = 1, .gravity_scale = 1, .body_type = Rigidbody::BodyType::DYNAMIC, - .max_linear_velocity = Vector2{10, 10}, + .max_linear_velocity = Vector2<double>{10, 10}, .max_angular_velocity = 10, .constraints = {0, 0}, .use_gravity = true, |