World Trigger
A world trigger is a cuboid shaped object, which fires callbacks when any node (collider or not) gets inside or outside of it.
A World Trigger Affecting Meshes
See also#
- WorldTrigger class to manage world triggers via API
Creating a World Trigger#
To create a world trigger via UnigineEditor:
- On the Menu bar, choose Create -> Logic -> World Trigger
Trigger Creation
- Place the node in the scene.
Editing a World Trigger#
In the World Trigger tab of the Parameters window you can adjust the following parameters of the trigger:
World Trigger tab
Bounding Box Parameters#
A set of bounding box parameters:
Edit Size | Toggles the editing mode for the world trigger node on and off. When enabled, the bounding box sides that can be resized are highlighted with the colored rectangles. To change the size of a side, drag the corresponding rectangle. |
---|---|
Touch | Specify if the touch mode is enabled for the trigger. With this mode on, the trigger will react to the node by a partial contact. Otherwise, the trigger will react only if the whole bounding box will get inside of it. |
Size | The size of the trigger's bounding box along the X, Y and Z axes, in units. |
Callbacks#
Last update:
27.12.2018
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter