lookTowards
fun lookTowards(lookDirection: Direction, upDirection: Direction = Direction(y = 1.0f), smooth: Boolean = isSmoothTransformEnabled, smoothSpeed: Float = smoothTransformSpeed): Node
Rotates the node to face a direction in world-space.
The look direction and up direction cannot be coincident (parallel) or the orientation will be invalid.
Parameters
lookDirection
The desired look direction in world-space.
upDirection
The up direction will determine the orientation of the node around the look direction.
smooth
Whether the rotation should happen smoothly.