Function de_behaviour::chase::chase

source ·
fn chase(
    commands: Commands<'_, '_>,
    path_events: EventWriter<'_, UpdateEntityPathEvent>,
    chasing: Query<'_, '_, (Entity, &Transform, &ChaseTargetComponent, Option<&PathTarget>)>,
    targets: Query<'_, '_, &Transform>
)