Skip to main content

rotate

Typeboolean | RotateControlOptions
Defaulttrue
Added inv4.0.0

Options for camera rotation.

If true, enable rotation via mouse/touch/keyboard with the default options (default)
If false, disable rotation control. If gyro: true, rotation through gyro is still possible.

In addition to the boolean value, detailed options can be specified through objects of type RotateControlOptions.

Example

Here's an example of disabling rotation.

{
rotate: false,
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}

For detailed options, you can specify the object as shown below.
Below is an example of disabling the pitch (X-axis rotation).
Refer to the sub-items on the left sidebar for detailed options and related descriptions.

{
rotate: {
disablePitch: true
},
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}