Previous Document Next Document

Interaction > Creating sensors > Orientation sensor

Orientation sensor


An orientation sensor launches a reaction when the object is at a specific orientation in degrees.

For example, a door, opening more than 15 degrees could trigger a chime sound.

To create an orientation sensor:
  1. Rotate an object into the desired position, then choose Interaction > Sensors > Orientation.
  2. An orientation sensor appears in the Interaction Editor.

  3. Expand the orientation sensor and select the event you want to use:

    OnEnterOri

    Launches a reaction when the objects arrives in at the Critical orientation.

    OnExitOri

    Launches a reaction when the objects leaves the Critical orientation.

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

Orientation Sensor Parameters

Critical
orientation

Orientation at which the object launches a reaction.

Tolerance

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


See also:

Linking Sensors and Reactions

Using Handles

Editing Triggers

Previous Document Next Document