Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
om::physics::collision::Collider Class Reference

A class that represents moving geometry that can collide with other geometry. More...

#include <omPhysicsCollider.h>

Public Member Functions

 Collider ()
 Create a new collider with the default initial state. More...
 
ShapeTypeID getTypeID () const
 Return the shape type ID for this collider. More...
 

Static Public Member Functions

static Bool testAABB (const Collider &c1, const Collider &c2)
 Return whether or not the specified pair of collider bounding boxes overlap. More...
 

Public Attributes

SIMDFloat4 bbMin
 The current minimum coordinate of this collider's bounding box in world-space. More...
 
SIMDFloat4 bbMax
 The current maximum coordinate of this collider's bounding box in world-space. More...
 
ShapeTypeID typeID
 The ID of the collider's shape type, copied locally to avoid cache misses. More...
 
context::ColliderID colliderID
 The ID of the collider within its context. More...
 
PhysicsShapeshape
 A pointer to the shape that describes the geometry of this collider. More...
 
ObjectStateobject
 A pointer to the object that controls the collider's motion. More...
 
CollisionListenerlistener
 A pointer to an object that receives collision events for this collider. More...
 

Detailed Description

A class that represents moving geometry that can collide with other geometry.

Constructor & Destructor Documentation

om::physics::collision::Collider::Collider ( )
inline

Create a new collider with the default initial state.

Member Function Documentation

ShapeTypeID om::physics::collision::Collider::getTypeID ( ) const
inline

Return the shape type ID for this collider.

static Bool om::physics::collision::Collider::testAABB ( const Collider c1,
const Collider c2 
)
inlinestatic

Return whether or not the specified pair of collider bounding boxes overlap.

Member Data Documentation

SIMDFloat4 om::physics::collision::Collider::bbMin

The current minimum coordinate of this collider's bounding box in world-space.

SIMDFloat4 om::physics::collision::Collider::bbMax

The current maximum coordinate of this collider's bounding box in world-space.

ShapeTypeID om::physics::collision::Collider::typeID

The ID of the collider's shape type, copied locally to avoid cache misses.

context::ColliderID om::physics::collision::Collider::colliderID

The ID of the collider within its context.

PhysicsShape* om::physics::collision::Collider::shape

A pointer to the shape that describes the geometry of this collider.

ObjectState* om::physics::collision::Collider::object

A pointer to the object that controls the collider's motion.

CollisionListener* om::physics::collision::Collider::listener

A pointer to an object that receives collision events for this collider.


The documentation for this class was generated from the following file: