Function: addCamera()
addCamera(
world
,inputsEntity
,time
,cameraOptions
):Entity
Defined in: rendering/utilities/add-camera.ts:14
Adds a camera entity to the world with the specified options.
Parameters
world
The world to which the camera will be added.
inputsEntity
The entity that contains the InputsComponent
.
time
The Time
instance.
cameraOptions
Partial
<CameraComponentOptions
>
Options for configuring the camera.
Returns
The entity that contains the CameraComponent
.