TouchRotate

Constructor:

TouchRotate({ newtouch1.position, newtouch2.position }, signedAngle, signedAnglespeed , touchState)

Description

This event is triggered when two fingers are rotated on the touch device.

Parameters

Variable name Type Default Description
table table{TouchPoint1 position, TouchPoint2 position}
float Rotation angle per frame
nil
UserInputState Enum Input type state

Examples

When the user rotates fingers on the touch device, observe whether the event is printed or not

UserInputService.TouchRotate:Connect(function() 
    print("The event that the user pinches or pulls apart two fingers is triggered")
end)