on
fun on(x: Float, y: Float, z: Float, distance: Float = 10.0f, rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float> = Triple(-45f, 0f, 0f)): Camera3D
fun on(x: Int, y: Int, z: Int, distance: Float = 10.0f, rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float> = Triple(-45f, 0f, 0f)): Camera3D
Creates a Camera3D looking at a specific target position.
Return
A Camera3D instance.
Parameters
x
The X coordinate of the target.
y
The Y coordinate of the target.
z
The Z coordinate of the target.
distance
The distance from the target (default 10.0)
rotation
The rotation angles (pitch, yaw, roll) in degrees (default looking from above)
fun on(target: Positionable3D, distance: Float = 10.0f, rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float> = Triple(-45f, 0f, 0f)): Camera3D
Creates a Camera3D looking at a specific target.
Return
A Camera3D instance.
Parameters
target
The target to look at.
distance
The distance from the target (default 10.0)
rotation
The rotation angles (pitch, yaw, roll) in degrees (default looking from above)