Previous section-----Next section

RotationLock3
3D

RotationLock3[cnum, bnum1, bnum2] locks the angular orientation of body bnum1 to be equal to the angular orientation of body bnum2.
RotationLock3[cnum, bnum1, bnum2, {ang, {x, y, z}}] constrains the angular orientation of body bnum1 to be rotated ang radians about the specified axis {x, y, z} relative to bnum2.
• If bnum2 is omitted, bnum1 is oriented relative to the global coordinate system.
RotationLock3 constrains three degrees of freedom.

• The axis of rotation is specified in the local coordinate system of body bnum2.
RotationLock3[cnum, bnum1, bnum2, {ang1, axis1}, ... , {angn, axisn}] successively rotates body bnum1 by {ang1, axis1}, then {ang2, axis2}, and so on. axis1 is specified in the local coordinates of body bnum2, but axis2 is specified in a new coordinate system created by rotating bnum2 through the first rotation; thus axis3 is specified in the local coordinates created by rotating bnum2 through the first then the second rotation, etc.
• Another way to describe the resulting rotation of bnum1 is to say that bnum1 is first rotated angn about axisn, specified in bnum2 coordinates, then rotated ang(n - 1) about axis(n - 1), also specified in bnum2 coordinates, etc.
• Each successive rotation may also be specified by a list of Euler parameters {eo, ei, ej, ek} or a virtual rotation vector {vx, vy, vz}.
• See also:
OriginLock3, ProjectedAngle1, RelativeAngle1, RotationLock1, SetConstraints, SysCon.