diff options
Diffstat (limited to 'src/KingSystem')
| -rw-r--r-- | src/KingSystem/ActorSystem/actActor.cpp | 7 | ||||
| -rw-r--r-- | src/KingSystem/Physics/System/physInstanceSet.h | 1 |
2 files changed, 8 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 diff --git a/src/KingSystem/Physics/System/physInstanceSet.h b/src/KingSystem/Physics/System/physInstanceSet.h index 58e6e138..ed73d68d 100644 --- a/src/KingSystem/Physics/System/physInstanceSet.h +++ b/src/KingSystem/Physics/System/physInstanceSet.h @@ -58,6 +58,7 @@ public: const sead::SafeString& getName() const { return mName; } const ParamSet* getParamSet() const { return mParamSet; } + CharacterController* getCharacterController() const { return mCharacterController; } void setFlag2(); void clothVisibleStuff(); |
