Derived from JointParameters.
HingeJointParameters {
SFVec3f anchor 0 0 0 # any vector
SFVec3f axis 1 0 0 # unit axis
SFFloat suspensionSpringConstant 0 # [0, inf)
SFFloat suspensionDampingConstant 0 # [0, inf)
SFVec3f suspensionAxis 1 0 0 # unit axis
}
The HingeJointParameters node can be used to specify the hinge rotation axis and various joint parameters (e.g., angular position, stop angles, spring and damping constants etc.) related to this rotation axis.
-
anchor
: This field specifies the anchor position, i.e. a point through which the hinge axis passes. Together with theaxis
field inherited from the JointParameters node, theanchor
field determines the hinge rotation axis in a unique way. It is expressed in relative coordinates with respect to the closest upper Transform node's frame. -
suspensionSpringConstant
: This field specifies the suspension spring constant along the suspension axis. -
suspensionDampingConstant
: This field specifies the suspension damping constant along the suspension axis. -
suspensionAxis
: This field specifies the direction of the suspension axis.
The suspensionSpringConstant
and suspensionDampingConstant
fields can be used to add a linear spring and/or damping behavior along the axis defined in suspensionAxis
.
These fields are described in more detail in JointParameters's "Springs and Dampers" section.