Restricting collision
- Last UpdatedDec 06, 2023
- 1 minute read
By default, any Manipulable object can interact with any other Item type node.
To avoid confusion, you should restrict the list of objects that can interact with a manipulated node.
For example, when using a screwdriver, you might allow it to interact only with screws, rather than with everything.
To restrict collision
-
Use the manipulable interactWith parameter to declare all and only those objects that the node can collide with. A null field means the node can collide with everything.