Leave

Leave is a trigger that fires when a user or other object moves away from the object with this trigger.

Basics

Icon-Trigger-Leave
Use the Leave trigger to make an object react when a user or another object moves away from it (for approach, use the Enter trigger).

For example, you can use this trigger to check if an object has been moved (away from another) or picked up.

Tags are used to identify the objects to which the trigger should react. So assign the same tags to the trigger as to the objects it should react to.

The tags are evaluated according to a logical OR, i.e. it is enough if one of the tags of the trigger matches one of the tags of the object.

You can assign multiple tags to the trigger, it will then react to all objects that have the same tag.

By default, the tag is User - so if you want to react to the user's approach, you don't need to do any further configuration.

If you do not want to react to the user, delete the User tag.

This trigger works in such a way that the distance from the zero point of the trigger object to the zero point of the target object is measured. If the distance is greater than the set distance (default 50 cm), the trigger will fire.

Therefore, please note: If you want the trigger to be released by a user, the zero point of the object with the trigger should be at a height of approx. 1.70 m, i.e. at the head height of the user.

The Leave trigger is available for all "corporeal" objects, i.e. for all assets except environments and for all standard assets.

Working with the Trigger Leave

Add Trigger Leave

Open the Trigger Hover panel by clicking + Add Trigger in the side panel of a selected object.

add-trigger

The Hover Panel appears on the right edge of the window in front of the Side Panel.

Click Leave to attach the trigger to the selected training object.

leave-trigger-menu-item

Add or Remove Tags

You use Tags to determine which objects the Enter trigger reacts to.

Set distance

The Distance property allows you to set the distance (in cm) at which the trigger will fire.

Technically, the distance refers to the distance between the zero points of the two objects involved.

enter-trigger-distance