aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-04 20:48:38 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-04 20:48:38 +0100
commit69634f05b00e0e01ab84ab14b6293c7a88c5fbe0 (patch)
treef7705d8afe8af2ccd744a09cafe4edebf47083a9 /src/test
parent24246e115c3b7829d2981a2f60ac77da657f2ed5 (diff)
added collision layers to example and unit test
Diffstat (limited to 'src/test')
-rw-r--r--src/test/CollisionTest.cpp2
1 files changed, 2 insertions, 0 deletions
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<BoxCollider>(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<BoxCollider>(vec2{0, 0}, vec2{10, 10});
BehaviorScript & script_object2