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
constructor();Properties
position
position: Position3d;target
target: Point3d;fov
Perspective field of view in degrees.
fov: number;nearClip
nearClip: number;farClip
farClip: number;orthographicSize
orthographicSize: number;movementSpeed
movementSpeed: number;mouseSensitivity
mouseSensitivity: number;controllerLookSensitivity
controllerLookSensitivity: number;lookSmoothness
lookSmoothness: number;useOrthographic
useOrthographic: boolean;focusDepth
focusDepth: number;focusRange
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
moveTo(target: Point3d, speed: number): void;getDirection
getDirection(): Normal3d;