igor::iPhysicsMaterialCombo Class Reference

#include <iPhysicsMaterialCombo.h>

Public Member Functions

void setName (const iaString &name)
 
const iaStringgetName () 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
 

Detailed Description

describes combination of two materials

Constructor & Destructor Documentation

◆ iPhysicsMaterialCombo()

igor::iPhysicsMaterialCombo::iPhysicsMaterialCombo ( iPhysicsMaterial material0,
iPhysicsMaterial material1 
)

dtor material combo

Parameters
material0first material
material1second material

◆ ~iPhysicsMaterialCombo()

virtual igor::iPhysicsMaterialCombo::~iPhysicsMaterialCombo ( )
virtualdefault

does nothing

Member Function Documentation

◆ contact()

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

Parameters
body0first body involved in contact
body1second body involved in contact

◆ getMaterial0()

int64 igor::iPhysicsMaterialCombo::getMaterial0 ( ) const
Returns
id of first material

◆ getMaterial1()

int64 igor::iPhysicsMaterialCombo::getMaterial1 ( ) const
Returns
id of second material

◆ getName()

const iaString & igor::iPhysicsMaterialCombo::getName ( ) const
Returns
name of material combo

◆ registerContactDelegate()

void igor::iPhysicsMaterialCombo::registerContactDelegate ( iContactDelegate  contactDelegate)

register delegate to contact event

Parameters
contactDelegatecontact delegate to register

◆ setElasticity()

void igor::iPhysicsMaterialCombo::setElasticity ( float32  elasticCoef)

sets elasticity coeficient between the two materials

Parameters
elasticCoefelasticity coeficient

◆ setFriction()

void igor::iPhysicsMaterialCombo::setFriction ( float32  staticFriction,
float32  kineticFriction 
)

sets friction between the two materials

Parameters
staticFrictionstatic friction value
kineticFrictionkinetic friction value

◆ setName()

void igor::iPhysicsMaterialCombo::setName ( const iaString name)

sets name of material combo

Parameters
namethe new name of this combo

◆ setSoftness()

void igor::iPhysicsMaterialCombo::setSoftness ( float32  value)

sets sofftness of collition between the two materials

Parameters
valuesoftness factor

◆ unregisterContactDelegate()

void igor::iPhysicsMaterialCombo::unregisterContactDelegate ( iContactDelegate  contactDelegate)

unregister delegate from contact event

Parameters
contactDelegatecontact delegate to unregister

Friends And Related Function Documentation

◆ iPhysics

friend class iPhysics
friend

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