API Referenceatlas
Camera
Active camera controls for projection, orientation, movement, and depth of field.
Module: atlas
Active camera controls for projection, orientation, movement, and depth of field.
Declaration
export class Camera { ... }Constructors
Creates a new camera.
constructor();Properties
position
The position in world space.
position: Position3d;target
The point toward which the camera is oriented.
target: Point3d;fov
Perspective field of view in degrees.
fov: number;nearClip
The near clip.
nearClip: number;farClip
The far clip.
farClip: number;orthographicSize
The orthographic size.
orthographicSize: number;movementSpeed
The movement speed.
movementSpeed: number;mouseSensitivity
The mouse sensitivity.
mouseSensitivity: number;controllerLookSensitivity
The controller look sensitivity.
controllerLookSensitivity: number;lookSmoothness
The look smoothness.
lookSmoothness: number;useOrthographic
Whether the camera uses orthographic projection.
useOrthographic: boolean;focusDepth
The focus depth.
focusDepth: number;focusRange
The focus range.
focusRange: number;Methods
move
Translates by the supplied offset.
move(offset: Position3d): void;setPosition
Sets the position to an absolute value.
setPosition(position: Position3d): void;setPositionKeepingOrientation
Moves the camera while preserving its viewing orientation.
setPositionKeepingOrientation(position: Position3d): void;lookAt
Orients toward the target position.
lookAt(target: Point3d, up?: Normal3d): void;moveTo
Move to.
moveTo(target: Point3d, speed: number): void;getDirection
Returns direction.
getDirection(): Normal3d;