feat: units hold formation while patrolling
This commit is contained in:
parent
c05d3aa28f
commit
ec6fc76335
7 changed files with 31 additions and 11 deletions
|
|
@ -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 };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue