aboutsummaryrefslogtreecommitdiff
path: root/game/prefab
diff options
context:
space:
mode:
Diffstat (limited to 'game/prefab')
-rw-r--r--game/prefab/ZapperObject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/game/prefab/ZapperObject.cpp b/game/prefab/ZapperObject.cpp
index 8df2075..944a53f 100644
--- a/game/prefab/ZapperObject.cpp
+++ b/game/prefab/ZapperObject.cpp
@@ -77,6 +77,7 @@ ZapperObject::ZapperObject(crepe::GameObject && base)
body {add_component<Rigidbody>(Rigidbody::Data {
.body_type = Rigidbody::BodyType::KINEMATIC,
.kinematic_collision = false,
+ .collision_layer = COLL_LAY_ZAPPER,
})},
collider {add_component<BoxCollider>(vec2(0, 0))} {
this->place(this->transform.position, 0, 300);