feat: units hold formation while patrolling
This commit is contained in:
parent
c05d3aa28f
commit
ec6fc76335
7 changed files with 31 additions and 11 deletions
|
|
@ -23,6 +23,9 @@ public:
|
|||
NavigationAgent3D *get_nav() const;
|
||||
void set_movement_speed(float value);
|
||||
float get_movement_speed() const;
|
||||
void set_unit_offset(Vector2 offset);
|
||||
Vector2 get_unit_offset() const;
|
||||
Vector3 get_unit_offset_3d() const;
|
||||
|
||||
private:
|
||||
float movement_speed{ 1.f };
|
||||
|
|
@ -31,6 +34,7 @@ private:
|
|||
StateMachine *fsm{ nullptr };
|
||||
NpcUnit *unit{ nullptr };
|
||||
NavigationAgent3D *nav{ nullptr };
|
||||
Vector2 unit_offset{ 0, 0 };
|
||||
};
|
||||
|
||||
#endif // !ENEMY_BODY_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue