Back to Filament

getUpVector

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

1.75.0939 B
Original Source

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

getUpVector

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

Retrieves the camera up unit vector in world space, that is a unit vector that points up with respect to the camera.

Return

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

Parameters

main

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