simple rotate to player ai while engaging

This commit is contained in:
2025-04-27 18:46:11 +02:00
parent ea84893c70
commit c37dd64221
5 changed files with 134 additions and 4 deletions

View File

@@ -43,8 +43,8 @@ fn init(mut commands: Commands, query: Query<(Entity, &EnemySpawn)>, heads_db: R
None,
None,
]),
Ai,
))
.insert_if(Ai, || !spawn.disable_ai)
.with_child((Name::from("body-rig"), AnimatedCharacter(id)))
.observe(on_kill);
}