diff options
| author | Michael Zhao <44533763+Pistonight@users.noreply.github.com> | 2026-07-29 20:52:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-29 20:52:36 -0700 |
| commit | cd3e7a9fbd5f76e23b4f4b837ee122659c60a4b3 (patch) | |
| tree | 877e7e25cf7b47b43429e4d0cc9e024bb3ec8b1e /src/KingSystem/ActorSystem/actActor.cpp | |
| parent | 4caa1241f380234b6d6859dea9f20ddc30c830e0 (diff) | |
| parent | ab0fe61df92de08e5f8ea4a7a991a0e49a515b3e (diff) | |
Merge pull request #182 from RobbyV2/actor-get-character-controller
Match Actor::getCharacterController
Diffstat (limited to 'src/KingSystem/ActorSystem/actActor.cpp')
| -rw-r--r-- | src/KingSystem/ActorSystem/actActor.cpp | 7 |
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 |
