Go to: Related nodes. Attributes.

This node contains the attributes for the rigid constraints. These constraints can only be used with rigid bodies. The constraints include the following:

nail: Constrains a rigid body to a point in world space.

pin: Constrains two rigid bodies together. By default the constraint is created at the midpoint between the two rigid bodies.

hinge: The hinge constrains the rigid body to an arbitrary axis restricting it to two degrees of freedom. This constraint can act on one or two rigid bodies. If one rigid body is selected the body is hinged to a point in world space. If two rigid bodies are selected the two rigid bodies are hinged. By default the constraint is created at the midpoint between the two rigid bodies.

spring: The spring constraint creates a spring which can act on one or two rigid bodies. If one rigid body is selected a spring is create which will constrain the rigid body to a point in world space. If two rigid bodies are selected a spring will be created between the two rigid bodies.

barrier: The barrier constraint limits the position of a rigid body to one side of an arbitrary plane. The constraint point is the center of mass of the rigid body.

Node nameParentsClassificationMFn typeCompatible function sets
rigidConstrainttransformdrawdb/geometry/dynamics/rigidConstraintkRigidConstraintkBase
kNamedObject
kDependencyNode
kRigidConstraint
kDagNode
kTransform

Related nodes

dynBase, field, airField, turbulenceField, radialField, vortexField, newtonField, volumeAxisField, dragField, uniformField, gravityField, pointEmitter, particle, rigidBody, geoConnectable, spring

Attributes (36)

angularVelocity, angularVelocityX, angularVelocityY, angularVelocityZ, constrain, constraintType, force, forceX, forceY, forceZ, initialOrientation, initialOrientationX, initialOrientationY, initialOrientationZ, initialPosition, initialPositionX, initialPositionY, initialPositionZ, interpenetrate, isBounded, isParented, relativeTo, rigidBody1, rigidBody2, solverId, springDamping, springRestLength, springStiffness, userDefinedPosition, userDefinedPositionX, userDefinedPositionY, userDefinedPositionZ, velocity, velocityX, velocityY, velocityZ

Long name (short name)TypeDefaultFlags
angularVelocity (avl) double30, 0, 0outputconnectablehidden
angularVelocity of the rigid constraint
angularVelocityX (avx) double0.0outputconnectablehidden
angularVelocity x of the rigid constraint.
angularVelocityY (avy) double0.0outputconnectablehidden
angularVelocity y of the rigid constraint.
angularVelocityZ (avz) double0.0outputconnectablehidden
angularVelocity z of the rigid constraint.
constrain (con) booltrueoutputinputconnectablestorablekeyable
The rigid constraint is on or off in the simulator if true.
constraintType (typ) enum1outputinputconnectablestorablekeyable
Constraint type. The enum values are historical.
force (for) double30, 0, 0output
the force on the constraint.
forceX (frx) double0.0output
the force in the x direction on the constraint.
forceY (fry) double0.0output
the force in the y direction on the constraint.
forceZ (frz) double0.0output
the force in the z direction on the constraint.
interpenetrate (int) boolfalseoutputinputconnectablestorablekeyable
interpenetration flag.
isBounded (bon) boolfalseoutputconnectablehidden
indicates if the constraint is bounded to a bounding box. Used so we do not clip the constraint when part of it is off the screen.
isParented (par) boolfalseoutputinputconnectablestorablehidden
set if the rigid constraint is parented.
initialOrientation (ino) double30, 0, 0outputinputstorable
The initial orientation of the rigid body constraint.
initialOrientationX (iox) angle (double)0.0degoutputinputconnectablestorable
The X component of the initial orientation.
initialOrientationY (ioy) angle (double)0.0degoutputinputconnectablestorable
The Y component of the initial orientation.
initialOrientationZ (ioz) angle (double)0.0degoutputinputconnectablestorable
The Z component of the initial orientation.
initialPosition (ip) double30, 0, 0outputinputstorable
Initial position of the rigid body constraint.
initialPositionX (ipx) double0.0outputinputconnectablestorable
The X component of the initial position.
initialPositionY (ipy) double0.0outputinputconnectablestorable
The Y component of the initial position.
initialPositionZ (ipz) double0.0outputinputconnectablestorable
The Z component of the initial position.
relativeTo (rlt) enum0outputinputconnectablestorable
Dtermines which rigid body the constraint shoul dbe recreated at.
rigidBody1 (rb1) Messagen/aoutputinputconnectable
The first rigid body to be constrained.
rigidBody2 (rb2) Messagen/aoutputinputconnectable
The second rigid body to be constrained.
solverId (sid) integer-1outputinputconnectablestorable
this is the index into the solver multi attributes.
springDamping (dmp) double0.1outputinputconnectablestorablekeyable
spring damping value.
springRestLength (srl) double1.0outputinputconnectablestorablekeyable
spring rest length.
springStiffness (sst) double5.0outputinputconnectablestorablekeyable
spring constraint stiffness
userDefinedPosition (udp) double30, 0, 0outputinputstorablekeyable
position at which the constraint will be recreated at.
userDefinedPositionX (upx) double0.0outputinputconnectablestorablekeyable
user defined position x.
userDefinedPositionY (upy) double0.0outputinputconnectablestorablekeyable
user defined position y.
userDefinedPositionZ (upz) double0.0outputinputconnectablestorablekeyable
user defined position z.
velocity (vel) double30, 0, 0outputconnectablehidden
velocity of the rigid constraint
velocityX (vlx) double0.0outputconnectablehidden
velocity x of the rigid constraint.
velocityY (vly) double0.0outputconnectablehidden
velocity y of the rigid constraint.
velocityZ (vlz) double0.0outputconnectablehidden
velocity z of the rigid constraint.