Managing attach points
- Last UpdatedDec 06, 2023
- 1 minute read
You can use AttachPoint nodes in a scene to let the manipulation system pick and choose the manipulated objects.
The best way to position an AttachPoint is with a proper manipulable node attached to place and align it correctly.
Defining AttachPoint interaction sphere
Use the radius parameter to restrict AttachPoint interaction to manipulated objects inside a minimum distance sphere. Use the Graphic Context Editor to set the proper radius and move around the AttachPoint. The distance sphere is shown as debug information.
Restricting AttachPoint interaction
By default, an AttachPoint can accept any manipulated object; however, you can restrict this to a limited list of items.
Use the attachableManipulables property to create a list of accepted manipulables.
Placing multiple objects on same AttachPoint
When you have different objects that can be placed on the same AttachPoint, this may require using the attachableManipulableMatrices property to correctly adapt relative positioning.
This functionality can be difficult to manage. Alternatively, you can create dedicated separated attach points and eventually place them in the same place.
