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
| Property | Type | Description | Defined in |
|---|---|---|---|
far? | number | The distance to the far clipping plane. Defaults to 1000. | 3d/src/core/camera.ts:65 |
fov? | number | The vertical field of view in degrees. Defaults to 60. | 3d/src/core/camera.ts:61 |
interactions? | boolean | CameraInteractions | Enables camera interactions, either all at once with a boolean or individually via CameraInteractions. | 3d/src/core/camera.ts:69 |
near? | number | The distance to the near clipping plane. Defaults to 0.1. | 3d/src/core/camera.ts:63 |
position? | Vector3 | The 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? | Vector3 | The world-space point the camera looks at. Defaults to [0, 0, 0]. | 3d/src/core/camera.ts:57 |
up? | Vector3 | The world-space up direction. Defaults to [0, 1, 0]. | 3d/src/core/camera.ts:59 |