Back to Filament

getPosition

docs/android/dokka/filament-android/com.google.android.filament/-camera/get-position.md

1.75.0864 B
Original Source

//filament-android/com.google.android.filament/Camera/getPosition

getPosition

[main]
open fun getPosition(out: Array<Float>): Array<Float>

Retrieves the camera position in world space.

Return

A 3-float array containing the camera's position in world units.

Parameters

main

outA 3-float array where the position will be stored, or null in which case a new array is allocated.