rotateTo
Rotates the camera to the specified spherical angles. The rotation can occur instantly or smoothly over time based on the instant
parameter.
Parameters
degreesX
the target horizontal rotation angle (theta) in degrees
degreesY
the target vertical rotation angle (phi) in degrees
instant
whether the rotation should be applied immediately (default is false
)
Rotates the orbital camera to the specified position defined by the eye
vector. The rotation can either occur instantly or smoothly interpolated over time, depending on the instant
parameter.
Parameters
eye
the target position to rotate the camera to, represented as a 3D vector
instant
whether the rotation should be applied immediately (default is false
)