mirror of
https://github.com/zeldaret/botw
synced 2026-08-17 05:01:25 -04:00
ksys/phys: Add a bunch of easy RigidBody functions
This commit is contained in:
@@ -36,6 +36,8 @@ public:
|
||||
SystemData* getSystemData() const { return mSystemData; }
|
||||
MaterialTable* getMaterialTable() const { return mMaterialTable; }
|
||||
|
||||
bool isPaused() const;
|
||||
|
||||
void initSystemData(sead::Heap* heap);
|
||||
|
||||
RigidContactPoints* allocContactPoints(sead::Heap* heap, int num, const sead::SafeString& name,
|
||||
@@ -51,6 +53,9 @@ public:
|
||||
|
||||
void removeSystemGroupHandler(SystemGroupHandler* handler);
|
||||
|
||||
void lockWorld(ContactLayerType type, void* a = nullptr, int b = 0, bool c = false);
|
||||
void unlockWorld(ContactLayerType type, void* a = nullptr, int b = 0, bool c = false);
|
||||
|
||||
private:
|
||||
u8 _28[0xa8 - 0x28];
|
||||
sead::CriticalSection mCS;
|
||||
|
||||
@@ -14,6 +14,6 @@ void UserTag::m4() {}
|
||||
|
||||
void UserTag::m5() {}
|
||||
|
||||
void UserTag::m7() {}
|
||||
void UserTag::m7(RigidBody* rigid_body, int a) {}
|
||||
|
||||
} // namespace ksys::phys
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
namespace ksys::phys {
|
||||
|
||||
class RigidBody;
|
||||
|
||||
class UserTag {
|
||||
SEAD_RTTI_BASE(UserTag)
|
||||
public:
|
||||
@@ -18,7 +20,7 @@ public:
|
||||
virtual void m4();
|
||||
virtual void m5();
|
||||
virtual const sead::SafeString& getName() const { return sead::SafeString::cEmptyString; }
|
||||
virtual void m7();
|
||||
virtual void m7(RigidBody* rigid_body, int a);
|
||||
virtual const sead::SafeString& getName2() const { return sead::SafeString::cEmptyString; }
|
||||
virtual ~UserTag() = default;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user