![]() |
Murl Engine API
Version 2018.3
|
The IContact graph node interface. More...
#include <murl_graph_i_contact.h>
The IContact graph node interface.
Contact nodes define the actual physical properties of a possible collision in the physics simulator, such as bounciness or friction. Every possible (or desired) combination of Graph::ISurface pairs must be defined via a contact.
See Graph::ISurface for defining a collision surface. See Graph::ISurfaceSlot for activating a surface for collision handling. See Graph::ICollidable for assigning a surface to a given collider.
Public Member Functions | |
virtual INode * | GetNodeInterface ()=0 |
Get the mutable Graph::INode interface. More... | |
virtual const INode * | GetNodeInterface () const =0 |
Get the constant Graph::INode interface. More... | |
virtual ISurfaceNodeTarget * | GetSurfaceNodeTarget ()=0 |
Get the mutable Graph::ISurfaceNodeTarget container. More... | |
virtual const ISurfaceNodeTarget * | GetSurfaceNodeTarget () const =0 |
Get the constant Graph::ISurfaceNodeTarget container. More... | |
virtual Bool | SetStaticFrictionConstant (Real value)=0 |
Set the contact's static friction coefficient. More... | |
virtual Real | GetStaticFrictionConstant () const =0 |
Get the contact's static friction coefficient. More... | |
virtual Bool | SetDynamicFrictionConstant (Real value)=0 |
Set the contact's dynamic (kinetic) friction coefficient. More... | |
virtual Real | GetDynamicFrictionConstant () const =0 |
Get the contact's dynamic friction coefficient. More... | |
virtual Bool | SetRollingFrictionConstant (Real value)=0 |
Set the contact's rolling friction coefficient. More... | |
virtual Real | GetRollingFrictionConstant () const =0 |
Get the contact's rolling friction coefficient. More... | |
virtual Bool | SetSpringConstant (Real value)=0 |
Set the contact's spring constant. More... | |
virtual Real | GetSpringConstant () const =0 |
Get the contact's spring constant. More... | |
virtual Bool | SetDampingConstant (Real value)=0 |
Set the contact's damping constant. More... | |
virtual Real | GetDampingConstant () const =0 |
Get the contact's damping constant. More... | |
virtual Bool | SetBounceFactor (Real value)=0 |
Set the contact's bounce factor. More... | |
virtual Real | GetBounceFactor () const =0 |
Get the contact's bounce factor. More... | |
virtual Bool | SetBounceThreshold (Real value)=0 |
Set the contact's bounce velocity threshold. More... | |
virtual Real | GetBounceThreshold () const =0 |
Get the contact's bounce velocity threshold. More... | |
virtual Bool | SetSlip (Real slip)=0 |
Set the contact's surface slip value. More... | |
virtual Real | GetSlip () const =0 |
Get the contact's surface slip value. More... | |
|
pure virtual |
Get the mutable Graph::INode interface.
This method returns a mutable pointer to the node's Graph::INode interface, to be able to query or modify common node properties such as active state, visibility or ID.
|
pure virtual |
Get the constant Graph::INode interface.
This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
|
pure virtual |
Get the mutable Graph::ISurfaceNodeTarget container.
This method returns a mutable pointer to the node's Graph::ISurfaceNodeTarget container, which allows to set or query the surface this state node refers to.
|
pure virtual |
Get the constant Graph::ISurfaceNodeTarget container.
This method returns a constant pointer to the node's Graph::ISurfaceNodeTarget container, which allows to query the surface this state node refers to.
Set the contact's static friction coefficient.
value | The static friction coefficient. |
|
pure virtual |
Get the contact's static friction coefficient.
Set the contact's dynamic (kinetic) friction coefficient.
value | The contact's dynamic friction coefficient. |
|
pure virtual |
Get the contact's dynamic friction coefficient.
Set the contact's rolling friction coefficient.
TODO: More detailed description.
value | The contact's rolling friction coefficient. |
|
pure virtual |
Get the contact's rolling friction coefficient.
Set the contact's spring constant.
TODO: More detailed description.
value | The contact's spring constant. |
|
pure virtual |
Get the contact's spring constant.
Set the contact's damping constant.
TODO: More detailed description.
value | The contact's damping constant. |
|
pure virtual |
Get the contact's damping constant.
Set the contact's bounce factor.
TODO: More detailed description.
value | The contact's bounce factor. |
|
pure virtual |
Get the contact's bounce factor.
Set the contact's bounce velocity threshold.
TODO: More detailed description.
value | The contact's bounce velocity threshold. |
|
pure virtual |
Get the contact's bounce velocity threshold.
Set the contact's surface slip value.
TODO: More detailed description.
slip | The contact's surface slip value. |
|
pure virtual |
Get the contact's surface slip value.