camera.resetRotation
resetRotation(options?: AnimateOptions): Promise<void>Reset the scene rotation back to (0, 0, 0).
When smooth is true (the default), the rotation is interpolated over
duration milliseconds. When smooth is false, the rotation snaps
instantly.
Not undoable. Does not emit any event.
There is no completion promise for the smooth rotation path — if you need to
sequence another camera call after the animation finishes, guard it with your
own timer or observe "camera:change" events.
options | AnimateOptions | Optional duration and smoothing control. |
Returns: Promise<void>
Example
await api.camera.resetRotation({ duration: 600 });