Back to Filament

setModelMatrix

docs/android/dokka/filament-android/com.google.android.filament/-camera/set-model-matrix.md

1.75.01.4 KB
Original Source

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

setModelMatrix

[main]
open fun setModelMatrix(modelMatrix: Array<Float>)

Sets the camera's model matrix.

Helper method to set the camera's entity transform component. Remember that the Camera "looks" towards its -z axis.

This has the same effect as calling:

kotlin
 engine.getTransformManager().setTransform(
         engine.getTransformManager().getInstance(camera->getEntity()), modelMatrix);

Parameters

main

modelMatrixThe camera position and orientation provided as a rigid transform matrix.

[main]
open fun setModelMatrix(modelMatrix: Array<Double>)

Sets the camera's model matrix.

Helper method to set the camera's entity transform component. Remember that the Camera "looks" towards its -z axis.

Parameters

main

modelMatrixThe camera position and orientation provided as a rigid transform matrix.