![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
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.
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.
Murl.Graph.INode GetNodeInterface()
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.
Murl.Graph.IGenericNodeTarget.GraphISurface GetSurfaceNodeTarget()
Set the contact's static friction coefficient.
Boolean SetStaticFrictionConstant(Number value)
value | The static friction coefficient. |
Get the contact's static friction coefficient.
Number GetStaticFrictionConstant()
Set the contact's dynamic (kinetic) friction coefficient.
Boolean SetDynamicFrictionConstant(Number value)
value | The contact's dynamic friction coefficient. |
Get the contact's dynamic friction coefficient.
Number GetDynamicFrictionConstant()
Set the contact's rolling friction coefficient. TODO: More detailed description.
Boolean SetRollingFrictionConstant(Number value)
value | The contact's rolling friction coefficient. |
Get the contact's rolling friction coefficient.
Number GetRollingFrictionConstant()
Set the contact's spring constant. TODO: More detailed description.
Boolean SetSpringConstant(Number value)
value | The contact's spring constant. |
Get the contact's spring constant.
Number GetSpringConstant()
Set the contact's damping constant. TODO: More detailed description.
Boolean SetDampingConstant(Number value)
value | The contact's damping constant. |
Get the contact's damping constant.
Number GetDampingConstant()
Set the contact's bounce factor. TODO: More detailed description.
Boolean SetBounceFactor(Number value)
value | The contact's bounce factor. |
Get the contact's bounce factor.
Number GetBounceFactor()
Set the contact's bounce velocity threshold. TODO: More detailed description.
Boolean SetBounceThreshold(Number value)
value | The contact's bounce velocity threshold. |
Get the contact's bounce velocity threshold.
Number GetBounceThreshold()
Set the contact's surface slip value. TODO: More detailed description.
slip | The contact's surface slip value. |
Get the contact's surface slip value.
Number GetSlip()