Point_Point : Helper

Point_Point - superclass: Helper; super-superclass:Node - classID: #(1607230723, 1091132200)

Description:

A Point_Point constraint lets you attach two objects together, or an object to a point in world space. It forces its objects to try to share a common point in space. The objects can rotate freely relative to each other, but always have the attachment point in common. When you set up the constraint, the point is defined in the object space of each object involved. During the simulation the constraint tries to apply forces to the objects so that the two pivot points defined by the two objects match.

Constructors:

Point_Point...

rctPointToPoint...

Properties:

.childBody (Child_Body) : node

Get/Set the Child Body node.

.parentBody (Parent_Body) : node

Get/Set the Parent Body node.

.hasParent (Has_Parent) : boolean

When set to True, the Parent node will be used.

.xMin (Min_X_Angle) : float

.xMax (Max_X_Angle) : float

.yMin (Min_Y_Angle) : float

.yMax (Max_Y_Angle) : float

.zMin (Min_Z_Angle) : float

.zMax (Max_Z_Angle) : float

Get/Set the Minimum and Maximum Angle. Only used when .constraintType is set to 1 - Limited.

.displayXAngle (Display_X_Angle) : boolean

.displayYAngle (Display_Y_Angle) : boolean

.displayZAngle (Display_Z_Angle) : boolean

Get/Set the Angles Display checkboxes state. Only used when .constraintType is set to 1 - Limited.

.constraintType (Point_to_Point_Type) : integer

Get/Set the Constraint Type. Corresponds to the Constraint Type radio buttons in the UI. Possible values are:

0 - Standard (default)

1 - Limited

2 - Stiff Spring

.length (Stiff_spring_length) : float

Get/Set the Stiff Spring Length value. Only used when .constraintType is set to 2.

.iconSize (Icon_Size) : float

Get/Set the Icon Size. Corresponds to the "Size" value in the Display group in the UI.

.isBreakable (Is_Breakable) : boolean

Get/Set the state of the "Breakable" checkbox in the UI. When set to true, the constaint will break when the linear or angular strengths are exceeded.

.linearBreakingStrength (Linear_Strength) : float

Get/Set the linear breaking strength. Corresponds to the "Linear" spinner in the Breakable group of UI controls.

.angularBreakingStrength (Angular_Strength) : float

Get/Set the angular breaking strength. Corresponds to the "Angular" spinner in the Breakable group of UI controls.

.strength : float

.tau : float

These two properties govern the impulses applied to the constraint's bodies in order to maintain the constraint, and so how strongly the constraint works to restrict their movement.

.lockSpaces (Lock_Spaces) : boolean

Get/Set the state of the "Lock Relative Transform" checkbox in the UI.

Interfaces

Interface: rctPointToPointInterface

Properties:

.parentBody : node : Read|Write

Get/Set the Parent Body node.

.childBody : node : Read|Write

Get/Set the Child Body node.

.hasParent : boolean : Read|Write

When set to True, the Body B node will be used.

.parentTransform : matrix3 by value : Read|Write

Get/Set the Parent node's transformation matrix.

.childTransform : matrix3 by value : Read|Write

Get/Set the Child node's transformation matrix.

.lockSpaces : boolean : Read|Write

Controls the state of the "Lock Relative Transform" checkbox in the UI.

.strength : float : Read|Write

.tau : float : Read|Write

These two properties govern the impulses applied to the constraint's bodies in order to maintain the constraint, and so how strongly the constraint works to restrict their movement.

.isBreakable : boolean : Read|Write

When set to true, the constraint is breakable.

.linearBreakingStrength : float : Read|Write

Get/Set the linear breaking strength.

.angularBreakingStrength : float : Read|Write

Get/Set the angular breaking strength.

.displaySize : float : Read|Write

Get/Set the display size.

.constraintType : integer : Read|Write

Get/Set the constraint type. Possible values are:

0 - Standard

1 - Limited

2 - Stiff Spring

.xLimitMin : float : Read|Write

Get/Set the min. X limit.

.xLimitMax : float : Read|Write

Get/Set the max. X limit.

.yLimitMin : float : Read|Write

Get/Set the min. Y limit.

.yLimitMax : float : Read|Write

Get/Set the max. Y limit.

.zLimitMin : float : Read|Write

Get/Set the min. Z limit.

.zLimitMax : float : Read|Write

Get/Set the max. Z limit.

.displayXLimits : boolean : Read|Write

Controls the display of the X limit.

.displayYLimits : boolean : Read|Write

Controls the display of the Y limit.

.displayZLimits : boolean : Read|Write

Controls the display of the Z limit.

.stiffSpringLength : float : Read|Write

Get/Set the Stiff Spring length value when .constraintType is set to 2.

Methods:

<void>alignToParentBody()

Aligns the Constraint to the Parent Body.

<void>alignToChildBody()

Aligns the Constraint to the Child Body.

<void>alignToParentSpace()

Aligns the Constraint to parent space.

<void>alignToChildSpace()

Aligns the Constraint to child space.

<void>alignToEachBody()

Aligns the Constraint to both bodies.

<boolean>isValid()

Returns true if the Constraint is valid, false otherwise. A valid Constraint has the correct number of rigid bodies attached and is included in a valid constraint solver.

See also

MAXScript Extensions for Reactor