grabBegin

actual fun grabBegin(x: Int, y: Int, strafe: Boolean)

Starts a grabbing session (i.e. the user begins dragging in the viewport).

In Mode.MAP mode, this starts a panning session. In Mode.ORBIT mode, this starts either rotating or strafing. In Mode.FLIGHT mode, this starts a nodal panning session.

Parameters

x

X-coordinate for the point of interest in viewport space

y

Y-coordinate for the point of interest in viewport space

strafe

Mode.ORBIT only: if true, starts a translation rather than a rotation

expect fun grabBegin(x: Int, y: Int, strafe: Boolean)

Starts a grabbing session (i.e. the user begins dragging in the viewport).

In Mode.MAP mode, this starts a panning session. In Mode.ORBIT mode, this starts either rotating or strafing. In Mode.FLIGHT mode, this starts a nodal panning session.

Parameters

x

X-coordinate for the point of interest in viewport space

y

Y-coordinate for the point of interest in viewport space

strafe

Mode.ORBIT only: if true, starts a translation rather than a rotation

actual fun grabBegin(x: Int, y: Int, strafe: Boolean)

Starts a grabbing session (i.e. the user begins dragging in the viewport).

In Mode.MAP mode, this starts a panning session. In Mode.ORBIT mode, this starts either rotating or strafing. In Mode.FLIGHT mode, this starts a nodal panning session.

Parameters

x

X-coordinate for the point of interest in viewport space

y

Y-coordinate for the point of interest in viewport space

strafe

Mode.ORBIT only: if true, starts a translation rather than a rotation

actual fun grabBegin(x: Int, y: Int, strafe: Boolean)

Starts a grabbing session (i.e. the user begins dragging in the viewport).

In Mode.MAP mode, this starts a panning session. In Mode.ORBIT mode, this starts either rotating or strafing. In Mode.FLIGHT mode, this starts a nodal panning session.

Parameters

x

X-coordinate for the point of interest in viewport space

y

Y-coordinate for the point of interest in viewport space

strafe

Mode.ORBIT only: if true, starts a translation rather than a rotation

actual fun grabBegin(x: Int, y: Int, strafe: Boolean)

Starts a grabbing session (i.e. the user begins dragging in the viewport).

In Mode.MAP mode, this starts a panning session. In Mode.ORBIT mode, this starts either rotating or strafing. In Mode.FLIGHT mode, this starts a nodal panning session.

Parameters

x

X-coordinate for the point of interest in viewport space

y

Y-coordinate for the point of interest in viewport space

strafe

Mode.ORBIT only: if true, starts a translation rather than a rotation