|
0.45.0
|
#include <iPhysicsMaterialCombo.h>
Public Member Functions | |
| void | setName (const iaString &name) |
| const iaString & | getName () const |
| void | registerContactDelegate (iContactDelegate contactDelegate) |
| void | unregisterContactDelegate (iContactDelegate contactDelegate) |
| void | setSoftness (float32 value) |
| void | setElasticity (float32 elasticCoef) |
| void | setFriction (float32 staticFriction, float32 kineticFriction) |
| int64 | getMaterial0 () const |
| int64 | getMaterial1 () const |
| void | contact (iPhysicsBody *body0, iPhysicsBody *body1) |
| iPhysicsMaterialCombo (iPhysicsMaterial *material0, iPhysicsMaterial *material1) | |
| virtual | ~iPhysicsMaterialCombo ()=default |
Friends | |
| class | iPhysics |
describes combination of two materials
| igor::iPhysicsMaterialCombo::iPhysicsMaterialCombo | ( | iPhysicsMaterial * | material0, |
| iPhysicsMaterial * | material1 | ||
| ) |
dtor material combo
| material0 | first material |
| material1 | second material |
|
virtualdefault |
does nothing
| void igor::iPhysicsMaterialCombo::contact | ( | iPhysicsBody * | body0, |
| iPhysicsBody * | body1 | ||
| ) |
triggers contact event
supposed to be only called by iPhysics but like this we can save one call to wrap it. and it does not hurt to call it any time
| body0 | first body involved in contact |
| body1 | second body involved in contact |
| int64 igor::iPhysicsMaterialCombo::getMaterial0 | ( | ) | const |
| int64 igor::iPhysicsMaterialCombo::getMaterial1 | ( | ) | const |
| const iaString & igor::iPhysicsMaterialCombo::getName | ( | ) | const |
| void igor::iPhysicsMaterialCombo::registerContactDelegate | ( | iContactDelegate | contactDelegate | ) |
register delegate to contact event
| contactDelegate | contact delegate to register |
| void igor::iPhysicsMaterialCombo::setElasticity | ( | float32 | elasticCoef | ) |
sets elasticity coeficient between the two materials
| elasticCoef | elasticity coeficient |
sets friction between the two materials
| staticFriction | static friction value |
| kineticFriction | kinetic friction value |
| void igor::iPhysicsMaterialCombo::setName | ( | const iaString & | name | ) |
sets name of material combo
| name | the new name of this combo |
| void igor::iPhysicsMaterialCombo::setSoftness | ( | float32 | value | ) |
sets sofftness of collition between the two materials
| value | softness factor |
| void igor::iPhysicsMaterialCombo::unregisterContactDelegate | ( | iContactDelegate | contactDelegate | ) |
unregister delegate from contact event
| contactDelegate | contact delegate to unregister |
|
friend |