Features  »  Supported Gestures  »  Precise Tilt (Yaw) Gesture

Precise Tilt (Yaw)

The ‘precise tilt (roll)’ gesture is a gesture that allows the user to tilt an 3D object in the horizontal plane in precise increments. When two fingers are placed on the screen and a third finger is moved horizontally, the event fires.

Using the Precise Tilt (Yaw) Gesture

The ‘precise tilt (roll)’ gesture is typically used to tilt an object in the horizontal plane in precise increments.

Mechanics and Code Samples

To register a ‘precise tilt (Yaw)’, move three fingers in a horizontal line to tilt an object in the X plane (precise increments).

1
2
3
4
5
6
element.addEventListener(GestureEvent.GESTURE_TILT, gestureTiltHandler);
private function gestureTiltHandler(e:GestureEvent):void {

    trace("e value:",e.tiltX);

}

Parameters

All touch and gesture events have a localX and localY (relative) position as well as a stageX and stageY (absolute) position.

In addition, the ‘precise tilt (Yaw)’ gesture returns a tiltX value that registers the change in position of the moving finger.

Related Gestures

Precise Tilt (Pitch), Aggressive Tilt (Pitch), Aggressive Tilt (Yaw)