TPerspectiveCamera
Hierarchy
- default
- TPerspectiveCamera
Implements
Index
Constructors
constructor
Properties
publiccameraComponent
publiccomponents
publicoptionalcontroller
publicdead
publicfov
publicrootComponent
Root component for the actor
publicuuid
publicoptionalworld
Methods
publicclipToWorldSpace
This method is used to convert a screen space location to a world space location.
Parameters
location: vec2
clip space location
Returns vec3
world space location
publicdestroy
Returns void
publicgetProjectionMatrix
This should be overridden by the camera implementation
Parameters
width: number
height: number
Returns mat4
returns identity matrix
publicgetRenderTasks
Returns TSerializedRenderTask[]
publicgetView
Returns TCameraView
publiclookAt
Adjusts the camera's rotation so it is looking towards a given position.
Parameters
target: vec3
The target position as a vec3
Returns void
publicmoveBy
Move the camera by a specified amount
Parameters
vec: vec3
Returns void
publicmoveTo
Set the camera to a given position
Parameters
position: vec3
Returns void
publiconEnterCollisionClass
Parameters
className: string
callback: TCollisionCallback
Returns void
publiconUpdate
Parameters
engine: default
delta: number
Returns Promise<void>
List of components that belong to this actor