Dial State Handler

In depth learning on Behaviour Models can be found in this course in Motive Academy.

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.

Name

Description

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.

Examples

Numbered Dial

Related Articles