Skip to main content

Interface: CameraPosition

Defines the viewing position and angle for the 3D camera. Controls how users see products in the configurator and allows for consistent viewing experiences across different devices and contexts.

Properties

alpha

alpha: number

Horizontal rotation angle around the target point in radians


beta

beta: number

Vertical rotation angle in radians that determines viewing height


position

position: Vector3

Absolute 3D coordinates of the camera position


radius

radius: number

Distance from the camera to the target point, controlling the zoom level


rotation

rotation: Vector3

Camera orientation as rotation around each axis


target?

optional target: Vector3

Point that the camera looks toward, typically centered on the product