panTo
Smoothly pans the camera to a specified target position. If the instant
parameter is set to true
, the panning occurs immediately; otherwise, it will be interpolated over time.
Parameters
target
the target position to pan the camera to, represented as a 3D vector
instant
whether the panning should occur instantly (default is false
)