|
Momentum Scripting v1
|
#include <SecondaryJoint.h>
Public Member Functions | |
| double | getDamping () const |
| double | getElasticity () const |
| bool | getEnabled () const |
| void | setDamping (double damping) |
| void | setElasticity (double elasticity) |
| void | setEnabled (bool enabled) |
A Base class for a joint which operates on the free DOF specifies by ordinary joints such as HingeJoint, PrismaticJoint, CylindricalJoint etc.
| double MOMENTUM_NAMESPACE::SecondaryJoint::getDamping | ( | ) | const |
Get the damping of the secondary constraint, depending if it is linear or rotational it is in different units, newton-seconds per meter for linear and newton-meter-seconds per radian if it is rotational.
| double MOMENTUM_NAMESPACE::SecondaryJoint::getElasticity | ( | ) | const |
Get the elasticity of the secondary constraint, depending if it is linear or rotational it is in different units, newton per meter for linear and newton per radian if it is rotational.
| bool MOMENTUM_NAMESPACE::SecondaryJoint::getEnabled | ( | ) | const |
Get if the secondary constraint is enabled on its parent joint.
| void MOMENTUM_NAMESPACE::SecondaryJoint::setDamping | ( | double | damping | ) |
Set the damping of the secondary constraint, depending if it is linear or rotational it is in different units, newton-seconds per meter for linear and newton-meter-seconds per radian if it is rotational.
| damping | the new damping of the secondary constraint |
Only available in simulation mode
| void MOMENTUM_NAMESPACE::SecondaryJoint::setElasticity | ( | double | elasticity | ) |
Set the elasticity of the secondary constraint, depending if it is linear or rotational it is in different units, newton-seconds per meter for linear and newton-meter-seconds per radian if it is rotational.
| elasticity | the new elasticity of the secondary constraint |
Only available in simulation mode
| void MOMENTUM_NAMESPACE::SecondaryJoint::setEnabled | ( | bool | enabled | ) |
Set if the secondary constraint is enabled on its parent joint.
| enabled | - the new enable state for the constraint |
Only available in simulation mode