gun shots (#16)

This commit is contained in:
extrawurst
2025-03-24 16:27:26 +01:00
committed by GitHub
parent 8599fe50e8
commit 594a5a612d
7 changed files with 160 additions and 9 deletions

View File

@@ -6,6 +6,7 @@ use bevy_trenchbroom::class::Target;
use bevy_trenchbroom::prelude::*;
use crate::cash::Cash;
use crate::physics_layers::GameLayer;
#[derive(PointClass, Component, Reflect, Default)]
#[reflect(Component)]
@@ -150,6 +151,7 @@ impl EnemySpawn {
Visibility::default(),
RigidBody::Dynamic,
Collider::capsule(0.4, 2.),
CollisionLayers::new(LayerMask(GameLayer::Npc.to_bits()), LayerMask::ALL),
LockedAxes::new().lock_rotation_z().lock_rotation_x(),
))
.with_children(|parent| {