Scripting API
TouchGesturesModule
RotateGesture

RotateGesture

Exposes details of a detected rotation gesture.
Ensure Rotate Gesture is enabled under the project's Touch Gestures capability.



Inherits From : Gesture

Example

Properties

PropertyDescription

location

(get) location: Vec2Signal
(set) (Not Available)


The screen space coordinates of the center point between the two touch touches of the rotation gesture, as a Vec2Signal.
Coordinates are always returned in screen space, even if an object was specified in the rotatation gesture method call, for example: TouchGestures.onRotate(plane).

rotation

(get) rotation: ScalarSignal
(set) (Not Available)


The rotation of the gesture in radians, as a ScalarSignal.

Methods

This module exposes no methods.