gun shots (#16)
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user