*SetMate()
Sets the properties related to the Constraint Mate advanced joint.
Syntax
*SetMate(varname, distance,
iradius,
jradius,
height)
Arguments
- varname
- The variable name of the Constraint Mate joint.
- distance
- The value of the distance constraint. Valid only when attribute type1 on the Constraint Mate joint is set to DISTANCE .
- iradius
- The radius of the sphere or cylinder geometry on the first body. Valid only when attribute type2 on the Constraint Mate joint is set to SPHERE or CYLINDER .
- jradius
- The radius of the sphere or cylinder or cone geometry on the second body. Valid only when attribute type3 on the Constraint Mate joint is set to SPHERE|CYLINDER|CONE.
- height
- The height of the cone. Valid only when attribute type3 on the Constraint Mate joint is set to CONE.
Example
The example below shows one example of a point-to-line distance constraint joint:
*Point( p_cg, "Body CG" )
*Body( b_body, "Body", p_cg )
*SetPoint( p_cg, 50, 0, 0 )
*SetBodyInertia( b_body, 1, 1000, 1000, 1000 )
*Set( b_body.usecm, true )
*ConstraintMate( aj_cons_mate, "Point-Line Constraint",
DISTANCE, POINT, LINE, b_body, B_Ground,
p_cg, P_Global_Origin, VECTOR, V_Global_Z )
*SetMate( aj_cons_mate, 50.00 )
Context
Comments
This MDL statement is used to specify property of an existing *ConstraintMate() advanced joint.
The syntax is common for all types of variation of *ConstraintMate().
If any attribute is not relevant based on the type of ConstraintMate, that attribute is ignored. For example, if a value is specified in the distance field for a joint that is of type COINCIDENT or TANGENT, the value has no effect.