TFixedAxisCameraController
Hierarchy
- default
- TFixedAxisCameraController
Implements
- default
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
optionalconfig: { axis?: string; bounds?: { max: vec3; min: vec3 }; deadzone?: number; distance?: number; leadFactor?: number; lerpFactor?: number; maxLead?: number }
optionalaxis: string
optionalbounds: { max: vec3; min: vec3 }
optionaldeadzone: number
optionaldistance: number
optionalleadFactor: number
optionallerpFactor: number
optionalmaxLead: number
Returns default
Properties
publicaxis
publicoptionalbounds
Type declaration
max: vec3
min: vec3
publicdeadzone
publicdistance
publicleadFactor
publiclerpFactor
publicmaxLead
Methods
attachTo
Attach this controller to a scene component.
Parameters
component: default
The scene component to attach to.
Returns void
publiclookAt
Adjust the camera to look at the specified target position using linear interpolation.
Parameters
target: vec3
The target position to look at.
instant: boolean = false
If true, rotate the camera instantly without interpolation.
Returns void
publicmoveTo
Move the camera to the specified position using linear interpolation.
Parameters
position: vec3
The target position to move the camera to.
instant: boolean = false
If true, move the camera instantly without interpolation.
Returns void
Lerp factor controlling the speed of interpolation.