From ab0fe61df92de08e5f8ea4a7a991a0e49a515b3e Mon Sep 17 00:00:00 2001 From: RobbyV2 Date: Tue, 28 Jul 2026 21:08:32 -0400 Subject: Match Actor::getCharacterController --- src/KingSystem/ActorSystem/actActor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/KingSystem/ActorSystem/actActor.cpp') diff --git a/src/KingSystem/ActorSystem/actActor.cpp b/src/KingSystem/ActorSystem/actActor.cpp index 8346b964..ec7f3ea1 100644 --- a/src/KingSystem/ActorSystem/actActor.cpp +++ b/src/KingSystem/ActorSystem/actActor.cpp @@ -3,6 +3,7 @@ #include "KingSystem/ActorSystem/actAiRoot.h" #include "KingSystem/ActorSystem/actBaseProcLink.h" #include "KingSystem/ActorSystem/actBaseProcMgr.h" +#include "KingSystem/Physics/System/physInstanceSet.h" namespace ksys::act { @@ -81,4 +82,10 @@ int Actor::handleMessage(const Message& message) { } } +phys::CharacterController* Actor::getCharacterController() { + if (!mPhysics) + return nullptr; + return mPhysics->getCharacterController(); +} + } // namespace ksys::act -- cgit v1.2.3