Skip to content

Documentation / @ripl/3d / CameraOptions

Interface: CameraOptions ​

Defined in: 3d/src/core/camera.ts:56

Options for constructing a camera, including position, projection type, and interaction config.

Properties ​

PropertyTypeDescriptionDefined in
far?numberThe distance to the far clipping plane. Defaults to 1000.3d/src/core/camera.ts:68
fov?numberThe vertical field of view in degrees. Defaults to 60.3d/src/core/camera.ts:64
interactions?boolean | CameraInteractionsEnables camera interactions, either all at once with a boolean or individually via CameraInteractions.3d/src/core/camera.ts:72
near?numberThe distance to the near clipping plane. Defaults to 0.1.3d/src/core/camera.ts:66
position?Vector3The camera's world-space position (eye point). Defaults to [0, 0, 5].3d/src/core/camera.ts:58
projection?"perspective" | "orthographic"The projection type. Defaults to 'perspective'.3d/src/core/camera.ts:70
target?Vector3The world-space point the camera looks at. Defaults to [0, 0, 0].3d/src/core/camera.ts:60
up?Vector3The world-space up direction. Defaults to [0, 1, 0].3d/src/core/camera.ts:62