raycast

actual fun raycast(x: Int, y: Int, outResult: FloatArray)

Given a viewport coordinate, picks a point in the ground plane, or in the actual scene if a raycast callback was configured.

Parameters

x

X-coordinate in viewport space

y

Y-coordinate in viewport space

outResult

float array of size ≥ 3 filled with the world-space intersection point

expect fun raycast(x: Int, y: Int, outResult: FloatArray)

Given a viewport coordinate, picks a point in the ground plane, or in the actual scene if a raycast callback was configured.

Parameters

x

X-coordinate in viewport space

y

Y-coordinate in viewport space

outResult

float array of size ≥ 3 filled with the world-space intersection point

actual fun raycast(x: Int, y: Int, outResult: FloatArray)

Given a viewport coordinate, picks a point in the ground plane, or in the actual scene if a raycast callback was configured.

Parameters

x

X-coordinate in viewport space

y

Y-coordinate in viewport space

outResult

float array of size ≥ 3 filled with the world-space intersection point

actual fun raycast(x: Int, y: Int, outResult: FloatArray)

Given a viewport coordinate, picks a point in the ground plane, or in the actual scene if a raycast callback was configured.

Parameters

x

X-coordinate in viewport space

y

Y-coordinate in viewport space

outResult

float array of size ≥ 3 filled with the world-space intersection point

actual fun raycast(x: Int, y: Int, outResult: FloatArray)

Given a viewport coordinate, picks a point in the ground plane, or in the actual scene if a raycast callback was configured.

Parameters

x

X-coordinate in viewport space

y

Y-coordinate in viewport space

outResult

float array of size ≥ 3 filled with the world-space intersection point