Class TouchPoint

Touch point represents a point in the screen.

Hierarchy (view full)

Constructors

Properties

delta: Vector2 = ...

Velocity that the point is moving.

first: Vector2 = ...

First point touched when movement begins.

force: number = 0

Pressure of the touch point. This value is between 0 and 1.

Only available on some devices.

justPressed: boolean = false

Indicates if this key was just pressed.

justReleased: boolean = false

Indicates if this key was just released.

position: Vector2 = ...

Position of the touch point.

pressed: boolean = false

Indicates if this key is currently pressed.

radius: Vector2 = ...

Radius of the touch point.

Defines an approximation of the touch area between the user and screen.

The orientation of the ellipse is defined by the "rotation" property.

rotation: number = 0

Rotation angle of the touch point in degrees, between 0 and 90.

Togheter with the radius of the touch point defines an ellipse that approximates the size and shape of the area of contact between the user and the screen.

Only available on some devices.

Methods

  • Set this key attributes manually.

    Parameters

    • justPressed: boolean

      Indicate if the button was just pressed.

    • pressed: boolean

      Indicate if the button is pressed.

    • justReleased: boolean

      Indicate if the button was just released.

    Returns void