UConstraint - superclass: helper; super-superclass:node - 48:0 - classID: #(1418738174, 1341607350)This helper is part of the MassFX Dynamics Simulation toolset.
Available in 3ds Max 2012 and higher.
Constructor:
UConstraint ... nvConstraint ...Properties:
<UConstraint>.body0 UndefinedClass default: undefined -- nodeGet/set the Parent Body node.
<UConstraint>.body1 UndefinedClass default: undefined -- nodeGet/set the Child Body node.
<UConstraint>.breakable BooleanClass default: false -- booleanGet/set the state of the Breakable checkbox.
<UConstraint>.maxForce Float default: 100.0 -- float; Max_ForceGet/set the Max. Force value. Used when Breakable is set to true.
<UConstraint>.maxTorque Float default: 10.0 -- float; Max_TorqueGet/set the Max. Torque value. Used when Breakable is set to true.
<UConstraint>.linearModeX Integer default: 1 -- integer; Linear_ModeXGet/set the X Translation Limit's mode.
Possible values are:
0 - Locked
1 - Limited
2 - Free
<UConstraint>.linearModeY Integer default: 1 -- integer; Linear_ModeYGet/set the Y Translation Limit's mode.
Possible values are:
0 - Locked
1 - Limited
2 - Free
<UConstraint>.linearModeZ Integer default: 1 -- integer; Linear_ModeZGet/set the Z Translation Limit's mode.
Possible values are:
0 - Locked
1 - Limited
2 - Free
<UConstraint>.linearPosition Float default: 100.0 -- float; Linear_PositionGet/set the value of the Limit Radius property.
<UConstraint>.linearRestitution Float default: 0.0 -- float; Linear_RestitutionGet/set the value of the Bounce property.
<UConstraint>.linearSpring Float default: 0.0 -- float; Linear_SpringGet/set the value of the Spring property.
<UConstraint>.linearDamping Float default: 0.0 -- float; Linear_DampingGet/set the value of the Damping property.
<UConstraint>.swing1Mode Integer default: 1 -- integer; Swing_1_ModeGet/set the state of the Swing Y mode radio buttons.
Possible values are:
0 - Locked
1 - Limited
2 - Free
<UConstraint>.swing1Angle Float default: 45.0 -- float; Swing_1_AngleGet/set the value of the Swing Y > Angle Limit property.
<UConstraint>.swing1Restitution Float default: 0.1 -- float; Swing_1_ResitutionGet/set the value of the Swing Y > Bounce property.
<UConstraint>.swing1Spring Float default: 0.0 -- float; Swing_1_SpringGet/set the value of the Swing Y > Spring property.
<UConstraint>.swing1Damping Float default: 0.0 -- float; Swing_1_DampingGet/set the value of the Swing Y > Damping property.
<UConstraint>.swing2Mode Integer default: 1 -- integer; Swing_2_ModeGet/set the state of the Swing Z mode radio buttons.
Possible values are:
0 - Locked
1 - Limited
2 - Free
<UConstraint>.swing2Angle Float default: 45.0 -- float; Swing_2_AngleGet/set the value of the Swing Z > Angle Limit property.
<UConstraint>.swing2Restitution Float default: 0.1 -- float; Swing_2_ResitutionGet/set the value of the Swing Z > Bounce property.
<UConstraint>.swing2Spring Float default: 0.0 -- float; Swing_2_SpringGet/set the value of the Swing Z > Spring property.
<UConstraint>.swing2Damping Float default: 0.0 -- float; Swing_2_DampingGet/set the value of the Swing Z > Damping property.
<UConstraint>.twistMode Integer default: 1 -- integer; Twist_ModeGet/set the state of the twist mode radio buttons.
Possible values are:
0 - Locked
1 - Limited
2 - Free
<UConstraint>.twistAngleLow Float default: 45.0 -- float; Twist_Angle_LowGet/set the value of the Left Limit Angle property.
<UConstraint>.twistAngleHigh Float default: 45.0 -- float; Twist_Angle_HighGet/set the value of the Right Limit Angle property.
<UConstraint>.twistRestitutionLow Float default: 0.0 -- float; Twist_Restitution_LowGet/set the value of the Left Bounce property.
<UConstraint>.twistRestitutionHigh Float default: 0.0 -- float; Twist_Restitution_HighGet/set the value of the Right Bounce property.
<UConstraint>.twistSpringHigh Float default: 0.0 -- float; Twist_Spring_HighGet/set the value of the Left Spring property.
<UConstraint>.twistSpringLow Float default: 0.0 -- float; Twist_Spring_LowGet/set the value of the Right Spring property.
<UConstraint>.twistDampingLow Float default: 0.0 -- float; Twist_Damping_LowGet/set the value of the Left Damping property.
<UConstraint>.twistDampingHigh Float default: 0.0 -- float; Twist_Damping_HighGet/set the value of the Right Damping property.
<UConstraint>.posSpring Float default: 0.0 -- float; Position_SpringGet/set the value of the Springiness property.
<UConstraint>.posDamping Float default: 0.0 -- float; Position_DampingGet/set the value of the Damping property.
<UConstraint>.swingSpring Float default: 0.0 -- float; Swing_SpringGet/set the value of the Springiness property.
<UConstraint>.swingDamping Float default: 0.0 -- float; Swing_DampingGet/set the value of the Damping property.
<UConstraint>.twistSpring Float default: 0.0 -- float; Twist_SpringGet/set the value of the Springiness property.
<UConstraint>.twistDamping Float default: 0.0 -- float; Twist_DampingGet/set the value of the Damping property.
<UConstraint>.helpersize Float default: 10.0 -- float; Helper_SizeGet/set the viewport Display Size of the Helper.
<UConstraint>.collision BooleanClass default: false -- booleanGet/set the state of the Parent/Child Collision checkbox.
<UConstraint>.useProjection BooleanClass default: false -- boolean; Use_ProjectionGet/set the state of the Use Projection checkbox.
<UConstraint>.projectionMode Integer default: 0 -- integer; Projection_ModeGet/set the state of the projection mode radio buttons.
Possible values are:
0 - Linear Only (faster)
1 - Linear and Angular
<UConstraint>.projectionDist Float default: 0.1 -- float; Projection_DistGet/set the value of the projection Distance property.
Used when .projectionMode is set to true.
<UConstraint>.projectionAngle Float default: 5.0 -- float; Projection_AngleGet/set the value of the projection Angle property.
Used when .projectionMode is set to true.
<UConstraint>.gearing BooleanClass default: false -- boolean<UConstraint>.gearRatio Float default: 1.0 -- float; Gear_Ratio<UConstraint>.unused1 Integer default: 1 -- index<UConstraint>.unused2 Point3 default: [0,0,0] -- point3<UConstraint>.unused3 Point3 default: [0,0,0] -- point3Unused paramblock tracks for future use.
Interface: ConstraintHelperInterfaceProperties:
Methods:
<void>init()Initializes the Constraint.
Actions: