Skip to content
On this page

Interface: OrbitOptions

WebSG.OrbitOptions

Interface representing the options for configuring an orbiting camera control mode.

Table of contents

Properties

Properties

pitch

Optional pitch: number

The pitch angle in degrees, which is the rotation around the X-axis. Positive values tilt the camera upwards, while negative values tilt it downwards.

Defined in

websg.d.ts:674


yaw

Optional yaw: number

The yaw angle in degrees, which is the rotation around the Y-axis. Positive values rotate the camera to the right, while negative values rotate it to the left.

Defined in

websg.d.ts:680


zoom

Optional zoom: number

The zoom value, which is a scalar factor for the distance from the object. Positive values move the camera closer to the object, while negative values move it further away.

Defined in

websg.d.ts:686