Manage manipulable items pick and leave
- Last UpdatedDec 06, 2023
- 1 minute read
Manage pick and leave Items
This section outlines an approach to implement Manipulable items pick and leave.
-
Picking means being able to assign an item to the manipulator and eventually taking it from an attach point.
-
Leaving means being able to remove an item from the manipulator and eventually assigning to an attach point.
Topics
Manipulation commands
The manipulation system provides two commands, start_manipulator and stop_manipulator to simplify manipulator pick and leave.
start_manipulator
Activates the manipulation system by setting the InteractionSelectorselectionMode to Manipulator.
Alternatively, it requires these passed arguments:
-
The name of an item that has a Manipulable referring to it. This item becomes the manipulatedNode.
-
The name of two items with Manipulables associated to them. The first is the manipulatedNode. The second is assigned to the secondary controller (left by default).
stop_manipulator
Leaves the manipulated node where it is and disables manipulation mode for InteractionSelector.
This command is rarely used due to the following reasons:
-
Usually, a manipulated node needs to be left attached to an AttachPoint .
-
Leaving a manipulator without a manipulated node prevents the collision system from working.