Cyclone Cyclone: cyclone::CollisionPrimitive Class Reference

cyclone::CollisionPrimitive Class Reference

Represents a primitive to detect collisions against. More...

#include <collide_fine.h>

Inheritance diagram for cyclone::CollisionPrimitive:

Inheritance graph
[legend]
Collaboration diagram for cyclone::CollisionPrimitive:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void calculateInternals ()
 Calculates the internals for the primitive.
Vector3 getAxis (unsigned index) const
 This is a convenience function to allow access to the axis vectors in the transform for this primitive.
const Matrix4getTransform () const
 Returns the resultant transform of the primitive, calculated from the combined offset of the primitive and the transform (orientation + position) of the rigid body to which it is attached.

Public Attributes

friend IntersectionTests
 This class exists to help the collision detector and intersection routines, so they should have access to its data.
friend CollisionDetector
RigidBodybody
 The rigid body that is represented by this primitive.
Matrix4 offset
 The offset of this primitive from the given rigid body.

Protected Attributes

Matrix4 transform
 The resultant transform of the primitive.

Detailed Description

Represents a primitive to detect collisions against.


Member Function Documentation

void cyclone::CollisionPrimitive::calculateInternals  ) 
 

Calculates the internals for the primitive.

Vector3 cyclone::CollisionPrimitive::getAxis unsigned  index  )  const [inline]
 

This is a convenience function to allow access to the axis vectors in the transform for this primitive.

const Matrix4& cyclone::CollisionPrimitive::getTransform  )  const [inline]
 

Returns the resultant transform of the primitive, calculated from the combined offset of the primitive and the transform (orientation + position) of the rigid body to which it is attached.


Member Data Documentation

RigidBody* cyclone::CollisionPrimitive::body
 

The rigid body that is represented by this primitive.

friend cyclone::CollisionPrimitive::CollisionDetector
 

friend cyclone::CollisionPrimitive::IntersectionTests
 

This class exists to help the collision detector and intersection routines, so they should have access to its data.

Matrix4 cyclone::CollisionPrimitive::offset
 

The offset of this primitive from the given rigid body.

Matrix4 cyclone::CollisionPrimitive::transform [protected]
 

The resultant transform of the primitive.

This is calculated by combining the offset of the primitive with the transform of the rigid body.


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