Type Alias: CameraControllerInitOptions
type CameraControllerInitOptions = {
target: Vec3;
forward_target_distance: number;
keyboard_fly_controls: {
enabled: boolean;
speed_multiplier: number;
};
};
Defined in: livelink.js/sources/rendering/camera/CameraControllerPreset.ts:19
Set of options to be used at CameraController
creation
Type declaration
Name | Type | Description |
---|---|---|
target ? | Vec3 | Set the default target |
forward_target_distance ? | number | Set the default target at a distance in the direction of the camera from its current position. Beware that Beware truck speed is relative to target distance. |
keyboard_fly_controls ? | { enabled : boolean ; speed_multiplier : number ; } | - |
keyboard_fly_controls.enabled | boolean | Use the keyboard fly controls |
keyboard_fly_controls.speed_multiplier ? | number | Alter keyboard fly controls truck speed. Beware truck speed is relative to target distance. |