Skip to content

Documentation / @ripl/3d / CameraOptions

Interface: CameraOptions

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

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:65
fov?numberThe vertical field of view in degrees. Defaults to 60.3d/src/core/camera.ts:61
interactions?boolean | CameraInteractionsEnables camera interactions, either all at once with a boolean or individually via CameraInteractions.3d/src/core/camera.ts:69
near?numberThe distance to the near clipping plane. Defaults to 0.1.3d/src/core/camera.ts:63
position?Vector3The camera's world-space position (eye point). Defaults to [0, 0, 5].3d/src/core/camera.ts:55
projection?"perspective" | "orthographic"The projection type. Defaults to 'perspective'.3d/src/core/camera.ts:67
target?Vector3The world-space point the camera looks at. Defaults to [0, 0, 0].3d/src/core/camera.ts:57
up?Vector3The world-space up direction. Defaults to [0, 1, 0].3d/src/core/camera.ts:59