From 1d440672f3c4104c7386587787f21ac04f73da25 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 11 Apr 2024 23:03:32 +0200 Subject: [PATCH] feat: character actor now uses callable_mp for callables --- src/character_actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/character_actor.cpp b/src/character_actor.cpp index cb34e93..ffed764 100644 --- a/src/character_actor.cpp +++ b/src/character_actor.cpp @@ -22,7 +22,7 @@ void CharacterActor::_bind_methods() { void CharacterActor::_enter_tree() { GDGAMEONLY(); this->nav_agent = this->get_node("NavigationAgent3D"); - this->nav_agent->connect("velocity_computed", Callable(this, "set_velocity_target")); + this->nav_agent->connect("velocity_computed", callable_mp(this, &CharacterActor::set_velocity_target)); this->target_rotation = this->get_global_transform().get_basis().get_quaternion(); this->health = this->get_node("Health"); this->primary_weapon_pool = this->get_node("ProjectilePool");