aboutsummaryrefslogtreecommitdiff
path: root/src/example/PlayerSubScene.cpp
diff options
context:
space:
mode:
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;