|
Wraith
0.1.5
Basic 3D game engine in C++
|


Public Types | |
| enum class | VolumeType { BSPHERE , AABB , OBB } |
| Values that represent volume types. More... | |
| enum class | VolumeHierarchyType { OCTREE } |
| Values that represent volume hierarchy htypes. More... | |
Public Member Functions | |
| Collidable (const Collidable &)=default | |
| Collidable & | operator= (const Collidable &)=default |
| Collidable (Collidable &&)=default | |
| Collidable & | operator= (Collidable &&)=default |
| const CollisionVolume & | getCollisionVolume () const |
| Gets the current collsion volume being used. More... | |
| const CollisionVolumeBSphere & | getBSphere () const |
| Gets the default BSphere. More... | |
| virtual void | terrainCollision () |
| Terrain collision callback for this object. More... | |
Protected Member Functions | |
| void | setColliderModel (Model *pColliderModel, VolumeType volumeType) |
| Sets collider model and Collision Volume type. More... | |
| void | setColliderModel (Model *pColliderModel, VolumeHierarchyType volumeHierarchyType, int maxDepth) |
| Sets collider model and Collision Volume Hierarchy type. More... | |
| void | updateCollisionData (const Matrix &world) |
| Updates the collision data described by world matrix. More... | |
| template<class UserClass > | |
| void | setCollidableGroup () |
| Sets collidable group. More... | |
| void | submitCollisionRegistration () |
| Submit collision registration to current scene. More... | |
| void | submitCollisionDeregistration () |
| Submit collision deregistration. More... | |
| bool | isRegisteredForCollisions () const |
| Query if this object is registered for collisions. More... | |
Private Member Functions | |
| void | registerToScene () |
| Registers to the current scene. More... | |
| void | deregisterFromScene () |
| Deregisters from the current scene. More... | |
Private Attributes | |
| CollisionVolume * | _pCollisionVolume |
| CollisionVolumeBSphere * | _pBSphere |
| Model * | _pColliderModel |
| CollisionManager::CollisionTypeID | _myCollisionTypeID |
| CollidableGroup::StorageReference | _deleteReference |
| CollisionRegisterCommand * | _pCollisionRegisterCommand |
| CollisionDeregisterCommand * | _pCollisionDeregisterCommand |
| RegistrationState | _currentRegistrationState |
Friends | |
| class | CollidableAttorney |
|
private |
Deregisters from the current scene.
DELAYED called with a command. NOT called by the user.
| const CollisionVolumeBSphere & Collidable::getBSphere | ( | ) | const |
Gets the default BSphere.
| const CollisionVolume & Collidable::getCollisionVolume | ( | ) | const |
Gets the current collsion volume being used.
|
private |
Registers to the current scene.
DELAYED called with a command. NOT called by the user.