aboutsummaryrefslogtreecommitdiff
path: root/src/example/PlayerSubScene.cpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-20 12:12:44 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-20 12:12:44 +0100
commit2b64252d44aea2709f836eaed199bcc04e961179 (patch)
tree6476cf95d217461c12151fc6b212307ae2250d34 /src/example/PlayerSubScene.cpp
parent74f70c61a37c94727e1411696f050cf588cf3446 (diff)
Fixed collision layers
Diffstat (limited to 'src/example/PlayerSubScene.cpp')
-rw-r--r--src/example/PlayerSubScene.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/example/PlayerSubScene.cpp b/src/example/PlayerSubScene.cpp
index 7d9526b..4f4ba9f 100644
--- a/src/example/PlayerSubScene.cpp
+++ b/src/example/PlayerSubScene.cpp
@@ -55,6 +55,7 @@ PlayerSubScene::PlayerSubScene(Scene & scn) {
.gravity_scale = 20,
.body_type = Rigidbody::BodyType::DYNAMIC,
.linear_velocity = vec2(100, 0),
+ .collision_layer = 10,
});
player.add_component<BoxCollider>(vec2(50, 50));
player.add_component<BehaviorScript>().set_script<PlayerScript>().active = false;