Class AttachmentPoint

java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.pose.Pose
com.marginallyclever.ro3.node.nodes.pose.poses.AttachmentPoint
All Implemented Interfaces:
PoseChangeListener, EventListener

public class AttachmentPoint extends Pose

AttachmentPoint is a point on a Pose that can be used to attach other Poses.

Users can click the attach button in the control panel. Developers can use the attemptAttach() method. If this AttachmentPoint finds another Pose within radius, it will move the other Pose to be a child of this AttachmentPoint.

Things in reach must be Pose items within radius of AttachmentPoint. They must also be immediate children of the Scene root.

The attached item will move from the Scene root and become a child of AttachmentPoint. On release all children of AttachmentPoint will be moved back to the Scene root. In both cases their relative pose will be adjusted so they do not teleport.