diff options
author | aap <aap@papnet.eu> | 2019-07-23 16:39:30 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-23 16:39:30 +0200 |
commit | e9cafe340a16c489c5f6874066b9836d70bd0091 (patch) | |
tree | d4dd7107784bd7cdf6ef055287bc6deffd35f925 /src/entities | |
parent | Merge pull request #161 from ShFil119/audio5 (diff) | |
download | re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.gz re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.bz2 re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.lz re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.xz re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.zst re3-e9cafe340a16c489c5f6874066b9836d70bd0091.zip |
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/Entity.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/entities/Entity.h b/src/entities/Entity.h index ff43903f..e975fb13 100644 --- a/src/entities/Entity.h +++ b/src/entities/Entity.h @@ -117,6 +117,15 @@ public: bool IsObject(void) { return m_type == ENTITY_TYPE_OBJECT; } bool IsDummy(void) { return m_type == ENTITY_TYPE_DUMMY; } + RpAtomic *GetAtomic(void) { + assert(RwObjectGetType(m_rwObject) == rpATOMIC); + return (RpAtomic*)m_rwObject; + } + RpClump *GetClump(void) { + assert(RwObjectGetType(m_rwObject) == rpCLUMP); + return (RpClump*)m_rwObject; + } + void GetBoundCentre(CVector &out); CVector GetBoundCentre(void) { CVector v; GetBoundCentre(v); return v; } float GetBoundRadius(void) { return CModelInfo::GetModelInfo(m_modelIndex)->GetColModel()->boundingSphere.radius; } |