Skip to main content

ignoreRoll

Typeboolean
Defaulttrue
Added inv4.0.0

If true, ignore the roll(Z-axis rotation) value of the gyroscope input.

caution

If you set this value to 'false', it will ignore the camera range constraint.
Options such as yawRange and pitchRange will be ignored, and also CylinderProjection's range will be ignored.

Example

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