Node: SliderJoint

X3D: 3.3
Component: RigidBodyPhysics

Quick Links

➨ Fields

The SliderJoint node represents a joint where all movement between the bodies specified by the body1 and body2 fields is constrained to a single dimension along a user-defined axis.

HTML Encoding and Default Values

<SliderJoint axis='0,1,0' body1='x3dom.nodeTypes.RigidBody' body2='x3dom.nodeTypes.RigidBody' forceOutput='"NONE"' maxSeparation='1' metadata='X3DMetadataObject' minSeparation='0' stopBounce='0' stopErrorCorrection='1' ></SliderJoint>



These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
axis SFVec3f 0,1,0 The axis field indicates which axis along which the two bodies will act. The value should represent a normalized vector.
body1 SFNode RigidBody X3DRigidJointNode The first body to be joint by the node
body2 SFNode RigidBody X3DRigidJointNode The second rigid body to be joint by the node
forceOutput SFString "NONE" ["ALL", "NONE",...] X3DRigidJointNode The forceOutput field is used to control which output fields are to be generated for the next frame. In physics models, the amount of data that can be generated per frame can be quite extensive, particularly in complex models with a large number of joints. A typical application will need only a few of them, if any at all. This field is used to control which of those outputs the author requires to be generated. The values of the array are to describe the names, exactly, of the output field(s) that are to be updated at the start of the next frame. Two special values are defined: "ALL" and "NONE".
maxSeparation SFFloat 1 [0,inf) If minSeparation is greater than maxSeparation, the stops become ineffective as if the object has no stops at all.
metadata SFNode X3DMetadataObject X3DRigidJointNode Field to add metadata information
minSeparation SFFloat 0 [0,inf) If minSeparation is greater than maxSeparation, the stops become ineffective as if the object has no stops at all.
stopBounce SFFloat 0 [0,1] The stopBounce field describes how much the joint should bounce the body back if the joint limit has been reached or exceeded. A value of zero indicates no bounce at all, and a value of one indicates that it should bounce with velocity equal and opposite to the collision velocity of the contact.
stopErrorCorrection SFFloat 1 [0,1] The stopErrorCorrection field describes the amount of error correction to be performed in a time step when the joint reaches the limit. A value of zero means no error correction is to be performed and a value of one means all error should be corrected in a single step.