Previous Document Next Document

Interaction > Creating sensors > Proximity sensor

Proximity sensor


A proximity sensor launches a reaction when one object enters or exits a certain distance from another object.

For example, when Krazee Bob approaches the Welcome mat, the Saloon doors open.


To create a proximity sensor:
  1. Multi-select two objects, then choose Interaction > Sensor > Proximity.
  2. In the Interaction Editor, expand the proximity sensor and select the event you want to use:

    OnEnterProximity

    Launches a reaction when the objects approaching each other come within the limit distance.

    OnExitProximity

    Launches a reaction when the objects moving apart exit the limit distance.

  3. Drag from the event to a reaction to link them.
  4. With the sensor still selected, set the Limit in the Parameter Editor.
  5. Select the proximity sensor and adjust its parameters in the Parameter Editor. This is distance in units at which the reaction is triggered.
  6. To test the interaction, add a Translate handle to one of the objects, then switch to Browse mode and drag one object close to the other.

Proximity Sensor Parameters

Limit

The distance in units at which the reaction is launched.


See also:

Linking Sensors and Reactions

Using Handles

Editing Triggers

Previous Document Next Document