Setting the ghost
- Last UpdatedDec 06, 2023
- 1 minute read
For a manipulable object to interact with attach points, you can assign a Ghost mesh. This mesh appears on the attach point when the manipulated object approaches the attach point.
Assigning a ghost mesh
There are two ways to assign a ghost mesh:
-
Automatic: If no ghost name is set, the system looks for a default one. The default must be named ghost_nodeName. For example, to provide an item called screwdriver with an automatic ghost, the scene must contain a mesh named ghost_screwdriver.
-
Manual: By setting the ghost attribute of the manipulable, you can use any mesh as ghost.
The ghost mesh can change at runtime to reflect node mesh modifications or for another reason. For example, a dressable equipment such as a shirt can be placed as folded on a table or dressed on a dummy.
