CollisionAlgorithmSphereVsBox Class Reference

#include <rimCollisionAlgorithmSphereVsBox.h>

Inheritance diagram for CollisionAlgorithmSphereVsBox:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void testForCollisions (CollisionResultSet &result)
 Iterate through all cached pairs and add all colliding pairs to the result set.
virtual bool testForCollisions (const CollisionPair &pair, CollisionManifold *manifold)
 Test for collisions between two shape instances immediately.
virtual
CollisionAlgorithmSphereVsBox
clone () const
 Construct a copy of this algorithm and return a pointer to it.
virtual const CollisionShapeTypegetShapeType1 () const
 Get a reference to the type of the first shape type this algorithm tests.
virtual const CollisionShapeTypegetShapeType2 () const
 Get a reference to the type of the second shape type this algorithm tests.

Static Private Attributes

static const CollisionShapeType type1 = "Sphere"
static const CollisionShapeType type2 = "Box"


Member Function Documentation

void CollisionAlgorithmSphereVsBox::testForCollisions ( CollisionResultSet result  )  [virtual]

Iterate through all cached pairs and add all colliding pairs to the result set.

Implements CollisionAlgorithm.

bool CollisionAlgorithmSphereVsBox::testForCollisions ( const CollisionPair pair,
CollisionManifold manifold 
) [virtual]

Test for collisions between two shape instances immediately.

If the manifold parameter is equal to NULL, then no contact information is stored. Otherwise, the contact points of the colliding shapes are added to the object pointed to by the manifold parameter if there are any. The method returns a boolean value indicating whether or not the shapes are colliding.

Parameters:
shape1 - the shape to test for collisions versus the second shape.
shape2 - the shape to test for collisions versus the first shape.
Returns:
whether or not the shapes are colliding.

Implements CollisionAlgorithm.

virtual CollisionAlgorithmSphereVsBox* CollisionAlgorithmSphereVsBox::clone (  )  const [inline, virtual]

Construct a copy of this algorithm and return a pointer to it.

Implements CollisionAlgorithm.

virtual const CollisionShapeType& CollisionAlgorithmSphereVsBox::getShapeType1 (  )  const [inline, virtual]

Get a reference to the type of the first shape type this algorithm tests.

Implements CollisionAlgorithm.

virtual const CollisionShapeType& CollisionAlgorithmSphereVsBox::getShapeType2 (  )  const [inline, virtual]

Get a reference to the type of the second shape type this algorithm tests.

Implements CollisionAlgorithm.


Member Data Documentation

RIM_PHYSICS_NAMESPACE_START const CollisionShapeType CollisionAlgorithmSphereVsBox::type1 = "Sphere" [static, private]

const CollisionShapeType CollisionAlgorithmSphereVsBox::type2 = "Box" [static, private]


The documentation for this class was generated from the following files:
Generated on Tue Aug 26 00:03:18 2008 for Rim Physics by  doxygen 1.5.4