lookAt
fun lookAt(targetNode: Node, upDirection: Direction = Direction(y = 1.0f), smooth: Boolean = isSmoothTransformEnabled, smoothSpeed: Float = smoothTransformSpeed): Node
Rotates the node to face another node.
Parameters
targetNode
The target node to look at
upDirection
The up direction will determine the orientation of the node around the direction
smooth
Whether the rotation should happen smoothly
fun lookAt(targetWorldPosition: Position, upDirection: Direction = Direction(y = 1.0f), smooth: Boolean = isSmoothTransformEnabled, smoothSpeed: Float = smoothTransformSpeed): Node
Rotates the node to face a point in world-space.
Parameters
targetWorldPosition
The target position to look at in world space
upDirection
The up direction will determine the orientation of the node around the direction
smooth
Whether the rotation should happen smoothly