Triggers

If you set a collider to be a trigger, other colliders no longer bump into it. Instead, they pass through.

The trigger detects when colliders enter it, which you can use to script events. For example, you can detect when a player character enters a room, and use this in your script to trigger an event. For more information, see .

Note

You can see when something enters the trigger using the following code:

Alternatively, directly access the :

For an example of how to use triggers, see the tutorial.