Previous Document Next Document

Interaction > Creating sensors > Position sensor

Position sensor


The position sensor launches a reaction when an object reaches or leaves a specific position.

For example, moving a coin into a slot could play a sound.

To create a position sensor:
  1. Select an object then choose Interaction > Sensors > Position.
  2. In the Interaction Editor, expand the position sensor and select the event you want to use:

    OnEnterPos

    Launches a reaction when the object arrives at the critical position.

    OnExitPos

    Launches a reaction when the object leaves the critical position.

  3. Drag from the event to a reaction to link them.
  4. Select the position sensor and adjust its parameters in the Parameter Editor.
  5. To test the sensor, add a translate handle to the object, then switch to Browse mode and drag the object into position to launch the reaction.

Position Sensor Parameters

CriticalPos

Position at which the object launches a reaction.

Tolerance

The reaction can occur as long as the object is close to the critical position. The Tolerance determines how close the object has to be to launch the reaction. For example, if Tolerance is 3 units, the reaction occurs when the object is 3 units from the critical position.


See also:

Linking Sensors and Reactions

Using Handles

Editing Triggers

Previous Document Next Document