disable "sleeping" of actors in physics engine

This commit is contained in:
yuni 2024-04-08 02:15:58 +02:00
parent 6a93193720
commit ca89a6eaff

View file

@ -588,6 +588,7 @@ fn spawn_entities(
camdistance: state.camdistance, camdistance: state.camdistance,
..default() ..default()
}); });
actor.insert(SleepingDisabled);
actor.insert(world::DespawnOnPlayerDeath); actor.insert(world::DespawnOnPlayerDeath);
actor.insert(actor::HitPoints::default()); actor.insert(actor::HitPoints::default());
actor.insert(Position::from(state.pos)); actor.insert(Position::from(state.pos));