Manipulator and InteractionSelector
- Last UpdatedJul 04, 2023
- 1 minute read
Inside the manipulation system, the Manipulator and InteractionSelector are deeply coupled.
Manipulator mode
The InteractionSelector selectionMode is set to Manipulator and offers a couple of dedicated fields used during manipulation:
-
manipulatorSelectionMode: Defines whether the InteractionSelector triggers the visualization of the state and the actions of the manipulated object or the one that is colliding with it (collision). This switch can also be implemented at runtime, which results in objects having different behavior.
-
manipulatorSilhouetteMode: Restricts the display of the silhouette among all collisionable objects, none or currently selected.
Collision mode
Manipulator drives InteractionSelector behavior when using the manipulation:
-
The collisionWithNode0 object is set as the selectedItem of the InteractionSelector when the selection mode is collision.
-
The manipulatedNode is set as selectedItem of the InteractionSelector when the selection mode is manipulated.