Skip to content

InputEventScreenPinch

Federico Ciuffardi edited this page Apr 11, 2022 · 2 revisions

Description

Custom input event type for a pinch.

Properties

Type Name Description
Vector2 position Mean of the positions of the involved fingers in the last frame
float distance Distance of the involved fingers to the mean of their positions in the last frame
float relative Change in the distance of the involved fingers to the mean of their positions in the current frame compared to the last frame
int fingers Number of involved fingers