vrdPositionConstraintNode

class vrdPositionConstraintNode

(Inherits vrdConstraintNode)

This class gives access to a position constraint object in VRED. A position constraint will synchronize the position of a source and a target. If there are multiple sources, the position is calculated as the weighted average value of it.

For managing constraints and code examples see vrConstraintService.

Functions

vrdPositionConstraintNode.getMaintainOffset()

Returns if the constraint maintains the offset to its sources.

Returns:True if constraint maintains the offset, False otherwise.
Return type:bool
vrdPositionConstraintNode.setMaintainOffset(value)

Sets if the constraint should maintain the offset to the sources when creating it.

Parameters:value (bool) – True if the offset shall be maintained, False otherwise.