From 9dafff70726e4a6f4b9d68c4138a9953a3daad8b Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sat, 14 Dec 2024 18:23:05 +0100 Subject: updated test --- src/test/CollisionTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/test') diff --git a/src/test/CollisionTest.cpp b/src/test/CollisionTest.cpp index 2ad65fa..b34bede 100644 --- a/src/test/CollisionTest.cpp +++ b/src/test/CollisionTest.cpp @@ -69,10 +69,10 @@ public: .offset = {0, 0}, }); // Create a box with an inner size of 10x10 units - world.add_component(vec2{0, -100}, vec2{100, 100}); // Top - world.add_component(vec2{0, 100}, vec2{100, 100}); // Bottom - world.add_component(vec2{-100, 0}, vec2{100, 100}); // Left - world.add_component(vec2{100, 0}, vec2{100, 100}); // right + world.add_component(vec2{100, 100},vec2{0, -100}); // Top + world.add_component(vec2{100, 100},vec2{0, 100}); // Bottom + world.add_component(vec2{100, 100},vec2{-100, 0}); // Left + world.add_component(vec2{100, 100},vec2{100, 0}); // right game_object1.add_component(Rigidbody::Data{ .mass = 1, @@ -84,7 +84,7 @@ public: .offset = {0, 0}, .collision_layers = {0}, }); - game_object1.add_component(vec2{0, 0}, vec2{10, 10}); + game_object1.add_component(vec2{10, 10},vec2{0, 0}); BehaviorScript & script_object1 = game_object1.add_component().set_script(1); script_object1_ref = static_cast(script_object1.script.get()); @@ -100,7 +100,7 @@ public: .offset = {0, 0}, .collision_layers = {0}, }); - game_object2.add_component(vec2{0, 0}, vec2{10, 10}); + game_object2.add_component(vec2{10, 10},vec2{0, 0}); BehaviorScript & script_object2 = game_object2.add_component().set_script(2); script_object2_ref = static_cast(script_object2.script.get()); -- cgit v1.2.3