![]() |
Murl Engine API
Version 2018.3
|
The IHingeJoint graph node interface. More...
#include <murl_graph_i_hinge_joint.h>
The IHingeJoint graph node interface.
A hinge joint is a joint that connects two bodies by enforcing a translation constraint along each of the three axes in 3D space, as well as rotation constraints that allow rotation around a single axis only (1 degree of freedom). The rotation axis can be set using the SetAxis() method.
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 ITransform * | GetTransformInterface ()=0 |
Get the mutable Graph::ITransform interface. More... | |
virtual const ITransform * | GetTransformInterface () const =0 |
Get the constant Graph::ITransform interface. More... | |
virtual IJoint * | GetJointInterface ()=0 |
Get the mutable Graph::IJoint interface. More... | |
virtual const IJoint * | GetJointInterface () const =0 |
Get the constant Graph::IJoint interface. More... | |
virtual Bool | SetAxis (const Vector &axis)=0 |
Set the hinge joint's rotation axis. More... | |
virtual const Vector & | GetAxis () const =0 |
Get the hinge joint's rotation axis. More... | |
virtual Bool | SetMinAngle (Real angle)=0 |
Set the hinge joint's minimum angle limit. More... | |
virtual Real | GetMinAngle () const =0 |
Get the hinge joint's minimum angle limit. More... | |
virtual Bool | SetMaxAngle (Real angle)=0 |
Set the hinge joint's maximum angle limit. More... | |
virtual Real | GetMaxAngle () const =0 |
Get the hinge joint's maximum angle limit. 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::ITransform interface.
This method returns a mutable pointer to the node's Graph::ITransform interface, to be able to query or modify the node's transformation matrix and depth order.
|
pure virtual |
Get the constant Graph::ITransform interface.
This method returns a constant pointer to the node's Graph::ITransform interface, to be able to query the node's transformation matrix and depth order.
|
pure virtual |
Get the mutable Graph::IJoint interface.
This method returns a mutable pointer to the node's Graph::IJoint interface, to be able to query or modify common joint-related properties.
|
pure virtual |
Get the constant Graph::IJoint interface.
This method returns a constant pointer to the node's Graph::IJoint interface, to be able to query common joint-related properties.
Set the hinge joint's rotation axis.
This method sets the axis around which the connected bodies are allowed to rotate relative to each other, relative to the joint's local coordinate system.
axis | The rotation axis. |
|
pure virtual |
Get the hinge joint's rotation axis.
Set the hinge joint's minimum angle limit.
angle | The minimum angle. |
|
pure virtual |
Get the hinge joint's minimum angle limit.
Set the hinge joint's maximum angle limit.
angle | The maximum angle. |
|
pure virtual |
Get the hinge joint's maximum angle limit.