feat: added get_velocity_target to player character
This commit is contained in:
parent
bf8e1f5763
commit
0b2685ee7c
|
@ -102,6 +102,10 @@ void PlayerCharacter::set_weapon_muzzle(Node3D *node) {
|
|||
this->weapon_muzzle = node;
|
||||
}
|
||||
|
||||
Vector3 PlayerCharacter::get_velocity_target() const {
|
||||
return this->velocity_target;
|
||||
}
|
||||
|
||||
void PlayerCharacter::process_ai(double delta_time) {
|
||||
if(this->nav_agent->is_navigation_finished()) {
|
||||
this->move(Vector3());
|
||||
|
|
|
@ -36,6 +36,8 @@ public:
|
|||
void set_character_data(Ref<CharacterData> data);
|
||||
|
||||
void set_weapon_muzzle(Node3D *node);
|
||||
|
||||
Vector3 get_velocity_target() const;
|
||||
protected:
|
||||
void process_ai(double delta_time);
|
||||
void process_rotation(double delta_time);
|
||||
|
|
Loading…
Reference in a new issue