Position_Constraint interfaces:

Position_Constraint interfaces:

This class represents the interface to the Position Constraint.

Interface: constraints

Methods

<integer>getNumTargets()

Returns the number of target nodes in the position target list.

<node>getTarget <index>index

Gets one of the position nodes that the position constraint controller targets, specified by targetNumber.

<index>index: The node number in the position target list to be obtained.

<boolean>setTarget <node>target <index>index

<float>getWeight <index>index <time>time

Gets the weight of one of the position nodes that the position constraint controller targets, specified by targetNumber, and time. Returns the position target weight if the targetNumber is relevant, 0.0f otherwise.

<index>index : The node number in the position target list to set.

<boolean>setWeight <float>weight <index>index <time>time

Sets the weight of one of the position nodes that the position constraint controller follows, specified by targetNumber, and time. Returns True if there is more than one position target in the list and you are trying to set weight, False otherwise.

<index>index: The node number in the position target list whose weight is to be set.

<float>weight: The weight to set.

<boolean>appendTarget <node>target <float>weight

Appends the current position target list by one.

<node>target : The node that is to be appended to the current position target list.

<float>weight: This is the weight that is to be assigned to the newly appended position target. The default weight is 50.0.

<void>deleteTarget <integer>targetNumber

This method allows you to delete a specified target. Returns True if successful, otherwise False.

<integer>targetNumber: The node number in the position target list to delete.

See also Class IposConstPosition, in the SDK Help file accompanying this product.