give collectibales physics layer

this keeps keys, dropped-hedz and cash from "colliding" with the camera arm
This commit is contained in:
2025-05-05 23:17:42 +02:00
parent 1ff7fefe38
commit fc300dae01
4 changed files with 10 additions and 4 deletions

View File

@@ -168,6 +168,7 @@ impl CashSpawn {
SceneRoot(mesh),
Cash,
Collider::cuboid(2., 3.0, 2.),
CollisionLayers::new(LayerMask(GameLayer::Collectibles.to_bits()), LayerMask::ALL),
CollisionEventsEnabled,
Sensor,
));