|
Monad Engine da02fba2
> Undercity Codex_
|
#include <CollisionObject.h>
Inheritance diagram for mnd::CollisionObject:
Collaboration diagram for mnd::CollisionObject:Public Member Functions | |
| CollisionObjectType | GetCollisionObjectType () |
| void | AddContactListener (IContactListener *listener) |
| void | RemoveContactListener (IContactListener *listener) |
| void | SetOwner (GameObject *owner) |
| GameObject * | GetOwner () const |
Protected Member Functions | |
| void | DispatchContactEvent (CollisionObject *obj, const vec3 &pos, const vec3 &norm) |
Protected Attributes | |
| CollisionObjectType | m_collisionObjType |
| std::vector< IContactListener * > | m_contactListeners |
| GameObject * | m_owner = nullptr |
Friends | |
| class | PhysicsManager |
Definition at line 20 of file CollisionObject.h.
| void mnd::CollisionObject::AddContactListener | ( | IContactListener * | listener | ) |
Definition at line 13 of file CollisionObject.cpp.
References m_contactListeners.
|
protected |
Definition at line 35 of file CollisionObject.cpp.
References m_contactListeners.
| CollisionObjectType mnd::CollisionObject::GetCollisionObjectType | ( | ) |
Definition at line 8 of file CollisionObject.cpp.
References m_collisionObjType.
|
inline |
Definition at line 31 of file CollisionObject.h.
References m_owner.
| void mnd::CollisionObject::RemoveContactListener | ( | IContactListener * | listener | ) |
Definition at line 26 of file CollisionObject.cpp.
References m_contactListeners.
|
inline |
Backref to the owning GameObject so raycast hits can resolve to scene objects without a separate map. Set by PhysicsComponent / KCC owner.
Definition at line 30 of file CollisionObject.h.
References m_owner.
|
friend |
Definition at line 40 of file CollisionObject.h.
|
protected |
Definition at line 36 of file CollisionObject.h.
Referenced by mnd::KinematicCharacterController::KinematicCharacterController(), mnd::RigidBody::RigidBody(), and GetCollisionObjectType().
|
protected |
Definition at line 37 of file CollisionObject.h.
Referenced by AddContactListener(), DispatchContactEvent(), and RemoveContactListener().
|
protected |
Definition at line 38 of file CollisionObject.h.
Referenced by GetOwner(), and SetOwner().