*ParallelAxesJointPair() - parallel axes joints (plane)
Creates a planar joint pair with its axes normal to the given plane.
Syntax
*ParallelAxesJointPair(joint_name,"joint_label",body_1, body_2, origin, INPLANE, POINT|VECTOR, point_1|vector_1, POINT|VECTOR, point_2|vector_2)
Arguments
- joint_name
- The variable name of the parallel axes joint pair.
- joint_label
- The descriptive label of the parallel axes joint pair.
- body_1
- The first body or body pair constrained by the parallel axes joint pair.
- body_2
- The second body or body pair constrained by the parallel axes joint pair.
- origin
- The location(s) of the parallel axes joint pair for body_1.
- INPLANE
- A required argument when two points, two vectors, or a point and a vector are used to define the plane.
- POINT|VECTOR
- A keyword that indicates the alignment method.
- point_1 vector_1
- An entity variable referring to a Point, PointPair, Vector, or VectorPair which is based on the above keyword.
- POINT|VECTOR
- A keyword that indicates the alignment method.
- point_2 vector_2
- An entity variable referring to a Point, PointPair, Vector, or VectorPair which is based on the above keyword.
Example
*BodyPair"First body", p_1)
(body_1,
*BodyPair"Second body", p_2)
(body_2,
*PointPair"CM of first body")
(point_1,
*VectorPair "Global X")
(v_X,
*VectorPair "Global Z")
(v_Z,
*ParallelAxesJointPair(j_paraxes, "Parallel axis joint pair", body_1,
body_2,
point_1,
INPLANE,
VECTOR,
v_X,
VECTOR,
v_Z)
Context
Properties
Property | Returns Data Type | Description |
---|---|---|
b1 | BodyPair | The first body pair constrained by the parallel axes joint pair. |
b2 | BodyPair | The second body pair constrained by the parallel axes joint pair. |
i | MarkerPair | The marker pair on b1. |
j | MarkerPair | The marker pair on b2. |
l | PlanarJoint | Left parallel axes joint. |
label | string | The descriptive label of the parallel axes joint pair. |
r | PlanarJoint | Right parallel axes joint. |
state | boolean | Control state (TRUE or FALSE). |
varname | string | The variable name of the parallel axes joint pair. |
Comments
The individual joints of a *ParallelAxesJointPair() can be referred to as joint_name.l (left parallel axes joint) and joint_name.r (right parallel axes joint).
A parallel axes joint pair constrains the relative rotation between two body pairs such that the two axes pairs always stay parallel. The axes may be defined by either specifying a point or vector (using the NORMAL flag for the sixth argument) or specifying two points or vectors that lie in the plane normal to the axes (using the INPLANE flag for the sixth argument).
When a point is used (instead of a vector) to define an axis, it is obtained as the direction from the origin of the joint to the specified point.