#include <CMaterialManager.h>
Public Member Functions | |
| CMaterialManager () | |
| Constructor for the class. | |
| void | init (NewtonWorld *world) |
| Initializes the class. | |
| int | createMaterial () |
| Creates a new material group. | |
| int | getDefaultMaterial () |
| Gets the default newton material. | |
| void | isCollidable (int material1, int material2, bool collidable) |
| Sets whether two materials should be collidable or not. | |
| void | setFriction (int material1, int material2, f32 staticFriction, f32 kineticFriction) |
| Sets the friction on collision of two materials. | |
| void | setElasticity (int material1, int material2, f32 elasticity) |
| Sets the elasticity on collision of two materials. | |
| void | setSoftness (int material1, int material2, f32 softness) |
| Sets the softness on collision of two materials. | |
| void | setUserCollisionCallback (int material1, int material2, IMaterialCallback *callback) |
| Sets the user callback for collision of two materials. | |
| void | doContinuousCollision (int material1, int material2, bool continiousCollision) |
Private Attributes | |
| NewtonWorld * | m_world |
| CMaterialManager::CMaterialManager | ( | ) |
Constructor for the class.
Material Manager Class //////////////////// This class handles all calls to newton material manager.
| void CMaterialManager::init | ( | NewtonWorld * | world | ) |
Initializes the class.
| int CMaterialManager::createMaterial | ( | ) |
Creates a new material group.
| int CMaterialManager::getDefaultMaterial | ( | ) |
Gets the default newton material.
| void CMaterialManager::isCollidable | ( | int | material1, | |
| int | material2, | |||
| bool | collidable | |||
| ) |
Sets whether two materials should be collidable or not.
| void CMaterialManager::setFriction | ( | int | material1, | |
| int | material2, | |||
| f32 | staticFriction, | |||
| f32 | kineticFriction | |||
| ) |
Sets the friction on collision of two materials.
| void CMaterialManager::setElasticity | ( | int | material1, | |
| int | material2, | |||
| f32 | elasticity | |||
| ) |
Sets the elasticity on collision of two materials.
| void CMaterialManager::setSoftness | ( | int | material1, | |
| int | material2, | |||
| f32 | softness | |||
| ) |
Sets the softness on collision of two materials.
| void CMaterialManager::setUserCollisionCallback | ( | int | material1, | |
| int | material2, | |||
| IMaterialCallback * | callback | |||
| ) |
Sets the user callback for collision of two materials.
| void CMaterialManager::doContinuousCollision | ( | int | material1, | |
| int | material2, | |||
| bool | continiousCollision | |||
| ) |
Sets whether two materials should be continiously processed for collision.
NewtonWorld* CMaterialManager::m_world [private] |
1.5.1-p1