Base properties of all types of cameras

interface CameraBaseProperty {
    animationDuration?: number;
    attachControl?: boolean;
    cameraAnimationConfig?: CameraAnimationConfig;
    enable?: boolean;
    fovInDegrees?: number;
    inertia?: number;
    maxZ?: number;
    minimizeRotation?: boolean;
    minZ?: number;
    speed?: number;
    target?: Vector3;
}

Hierarchy (view full)

Properties

animationDuration?: number

The amount of time (in seconds) to carry out the animation. 0 means no animation enabled.

0
attachControl?: boolean

Whether to attach the input controls to a specific dom element to get the input from

true
cameraAnimationConfig?: CameraAnimationConfig

The Camera Animation Configuration groups the different settings used to define the camera animation behavior

enable?: boolean

Whether to enable the camera

true
fovInDegrees?: number

Field Of View set in Degrees

45.84 (i.e. 0.8 in Radians)
inertia?: number

Define the overall inertia of the camera. This helps to give a smooth feeling to the camera movement.

0.9
maxZ?: number

Define the maximum distance the camera can see to

10000
minimizeRotation?: boolean

Minimize the amount of rotation animation on arcCamera's 'alpha' and 'beta' keys.

For alpha and beta values, we want to minimize the amount of rotation in the animation. User interactions can cause the alpha and beta to be arbitrarily large or small and thus cause the camera to spin around an unpredictable amount to reach the desired alpha and beta. We can avoid this by animating to the current alpha(or beta) + the delta angle between the current and desired alphas and betas

false
minZ?: number

Define the minimum distance the camera can see from @default: 1

speed?: number

Define the current speed of the camera

2
target?: Vector3

Defines the target point of the camera. The camera looks towards it form the radius distance.

Vector3.Zero