Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Monitor and set the state of a “dial”: any object that rotates around a point. Can be used to set the dial to discrete values.

The state is driven by the rotation of any Grabbable. Does not require a Joint, but can be used in conjunction with one.

State

The name of the state to monitor.

Grabbable

The Grabbable, uses current object by default.

Axis

Primary axis for rotation.

Secondary Axis

An axis at right angles to the primary axis to use for cross product calculations.

Stops

Defines the “Stops” used by the dial for setting an integer state.

Lower Angle: The starting angle of this set of stops.

Upper Angle: The final angle of this set of stops.

Start Value: The start value of the stops.

Num Stops: The number of stops to set between the angles.

Example

...

In this example, we set up a dial with a large zero value between -20 and 8 degrees of rotation, then values from 1-24 between 8 and 350 degrees.