feat: units hold formation while patrolling

This commit is contained in:
Sara 2025-07-21 16:50:58 +02:00
parent c05d3aa28f
commit ec6fc76335
7 changed files with 31 additions and 11 deletions

View file

@ -59,3 +59,15 @@ void EnemyBody::set_movement_speed(float value) {
float EnemyBody::get_movement_speed() const {
return this->movement_speed;
}
void EnemyBody::set_unit_offset(Vector2 offset) {
this->unit_offset = offset;
}
Vector2 EnemyBody::get_unit_offset() const {
return this->unit_offset;
}
Vector3 EnemyBody::get_unit_offset_3d() const {
return { this->unit_offset.x, 0, this->unit_offset.y };
}