From 69634f05b00e0e01ab84ab14b6293c7a88c5fbe0 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Wed, 4 Dec 2024 20:48:38 +0100 Subject: added collision layers to example and unit test --- src/test/CollisionTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/test') diff --git a/src/test/CollisionTest.cpp b/src/test/CollisionTest.cpp index 74edaf7..3da04b5 100644 --- a/src/test/CollisionTest.cpp +++ b/src/test/CollisionTest.cpp @@ -78,6 +78,7 @@ public: .constraints = {0, 0, 0}, .elastisity_coefficient = 1, .offset = {0, 0}, + .collision_layers = {0}, }); game_object1.add_component(vec2{0, 0}, vec2{10, 10}); BehaviorScript & script_object1 @@ -93,6 +94,7 @@ public: .constraints = {0, 0, 0}, .elastisity_coefficient = 1, .offset = {0, 0}, + .collision_layers = {0}, }); game_object2.add_component(vec2{0, 0}, vec2{10, 10}); BehaviorScript & script_object2 -- cgit v1.2.3