diff options
| author | Léo Lam <leo@leolam.fr> | 2022-03-25 22:34:22 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-03-25 23:22:12 +0100 |
| commit | 9f8530ec90d2fa77aa45a96e081afdd30ec8aed6 (patch) | |
| tree | 55dad9bd7e63f1cf3ccf0eb8ed8f3aa47a1e1959 /src/KingSystem/Physics/StaticCompound/physStaticCompound.h | |
| parent | f3b3653b0f7bce79adb0e46240f88ef9518f9d44 (diff) | |
ksys/phys: Finish StaticCompoundMgr
Diffstat (limited to 'src/KingSystem/Physics/StaticCompound/physStaticCompound.h')
| -rw-r--r-- | src/KingSystem/Physics/StaticCompound/physStaticCompound.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/KingSystem/Physics/StaticCompound/physStaticCompound.h b/src/KingSystem/Physics/StaticCompound/physStaticCompound.h index 78c7f5cf..4c328e51 100644 --- a/src/KingSystem/Physics/StaticCompound/physStaticCompound.h +++ b/src/KingSystem/Physics/StaticCompound/physStaticCompound.h @@ -27,6 +27,8 @@ public: StaticCompound(); ~StaticCompound() override; + bool isInitialised() const { return mFlags.isOn(Flag::Initialised); } + bool isAnyRigidBodyAddedToWorld() const; bool isAnyRigidBodyAddedOrBeingAddedToWorld() const; void removeFromWorld(); @@ -45,7 +47,7 @@ public: int getNumFieldBodyGroups() const { return mFieldBodyGroups.size(); } StaticCompoundRigidBodyGroup* getFieldBodyGroup(int idx); - bool hasFieldBodyGroup(StaticCompoundRigidBodyGroup* group) const; + bool hasFieldBodyGroup(const StaticCompoundRigidBodyGroup* group) const; // res::Resource interface void doCreate_(u8* buffer, u32 buffer_size, sead::Heap* parent_heap) override; |
