Interface P3dCameraOptions

interface P3dCameraOptions {
    instant?: boolean;
    location?: {
        x: number;
        y: number;
        z: number;
    };
    makeDefault?: boolean;
    target?: {
        x: number;
        y: number;
        z: number;
    };
}

Hierarchy (view full)

Properties

instant?: boolean

Move camera to target location instantly rather than doing animation

location?: {
    x: number;
    y: number;
    z: number;
}

Location of the camera, in scene space coordinates

Type declaration

  • x: number
  • y: number
  • z: number
makeDefault?: boolean

Make this the default camera orientation so that camera reset (double click, R button) reverts to this location instead

target?: {
    x: number;
    y: number;
    z: number;
}

Point that the camera is looking at and rotating around, in scene space coordinates

Type declaration

  • x: number
  • y: number
  • z: number