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