Back to Filament

lookAt

docs/android/dokka/filament-android/com.google.android.filament/-camera/look-at.md

1.75.01.8 KB
Original Source

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

lookAt

[main]
open fun lookAt(eyeX: Double, eyeY: Double, eyeZ: Double, centerX: Double, centerY: Double, centerZ: Double, upX: Double, upY: Double, upZ: Double)

Sets the camera's model matrix.

Parameters

main

eyeXx-axis position of the camera in world space
eyeYy-axis position of the camera in world space
eyeZz-axis position of the camera in world space
centerXx-axis position of the point in world space the camera is looking at
centerYy-axis position of the point in world space the camera is looking at
centerZz-axis position of the point in world space the camera is looking at
upXx-axis coordinate of a unit vector denoting the camera's "up" direction
upYy-axis coordinate of a unit vector denoting the camera's "up" direction
upZz-axis coordinate of a unit vector denoting the camera's "up" direction