Public Member Functions | Friends

sp::scene::CollisionMaterial Class Reference

#include <spCollisionMaterial.hpp>

Inheritance diagram for sp::scene::CollisionMaterial:
sp::BaseObject

List of all members.

Public Member Functions

 CollisionMaterial ()
 ~CollisionMaterial ()
void addRivalMaterial (CollisionMaterial *Rival)
 Adds the specified collision material as new rival.
void removeRivalMaterial (CollisionMaterial *Rival)
 Removes the specified collision material as rival.
void setContactCallback (const CollisionContactCallback &Callback)
 Sets the collision contact callback function. Use this to determine when a collision has been detected.
CollisionContactCallback getContactCallback () const
const std::vector
< CollisionNode * > & 
getNodeList () const
 Returns the list of collision nodes which use this material.
const std::vector
< CollisionMaterial * > & 
getRivalList () const
 Retuns the rival collision material list.

Friends

class CollisionNode
class CollisionGraph

Detailed Description

This is the collision material class. It's used to define a collidable material with several rival materials.


Constructor & Destructor Documentation

sp::scene::CollisionMaterial::CollisionMaterial (  ) 
sp::scene::CollisionMaterial::~CollisionMaterial (  ) 

Member Function Documentation

void sp::scene::CollisionMaterial::addRivalMaterial ( CollisionMaterial Rival  ) 

Adds the specified collision material as new rival.

CollisionContactCallback sp::scene::CollisionMaterial::getContactCallback (  )  const [inline]
const std::vector<CollisionNode*>& sp::scene::CollisionMaterial::getNodeList (  )  const [inline]

Returns the list of collision nodes which use this material.

const std::vector<CollisionMaterial*>& sp::scene::CollisionMaterial::getRivalList (  )  const [inline]

Retuns the rival collision material list.

void sp::scene::CollisionMaterial::removeRivalMaterial ( CollisionMaterial Rival  ) 

Removes the specified collision material as rival.

void sp::scene::CollisionMaterial::setContactCallback ( const CollisionContactCallback Callback  )  [inline]

Sets the collision contact callback function. Use this to determine when a collision has been detected.


Friends And Related Function Documentation

friend class CollisionGraph [friend]
friend class CollisionNode [friend]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines