summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actActor.cpp
diff options
context:
space:
mode:
authorRobbyV2 <robby@robby.blue>2026-07-28 21:08:32 -0400
committerRobbyV2 <robby@robby.blue>2026-07-28 21:08:32 -0400
commitab0fe61df92de08e5f8ea4a7a991a0e49a515b3e (patch)
tree53c867b87c27fb54bef2c45319c0e0abecb91a24 /src/KingSystem/ActorSystem/actActor.cpp
parent88da953350447728ecfdf58e0efdd413bc29e972 (diff)
Match Actor::getCharacterController
Diffstat (limited to 'src/KingSystem/ActorSystem/actActor.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actActor.cpp7
1 files changed, 7 insertions, 0 deletions
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