Skip to main content

Class: SimpleCamera

components.SimpleCamera

A basic camera that uses yomotsu's cameracontrols to easily control the camera in 2D and 3D. Check out it's API to find out what features it offers.

Hierarchy

Implements

Properties

activeCamera

activeCamera: PerspectiveCamera | OrthographicCamera

The camera that is being used now according to the current CameraProjection.

Defined in

temp/components/core/SimpleCamera/index.ts:46


afterUpdate

Readonly afterUpdate: Event<SimpleCamera>

afterUpdate

Implementation of

Updateable.afterUpdate

Defined in

temp/components/core/SimpleCamera/index.ts:23


beforeUpdate

Readonly beforeUpdate: Event<SimpleCamera>

beforeUpdate

Implementation of

Updateable.beforeUpdate

Defined in

temp/components/core/SimpleCamera/index.ts:20


controls

Readonly controls: CameraControls

The object that controls the camera. An instance of yomotsu's cameracontrols. Transforming the camera directly will have no effect: you need to use this object to move, rotate, look at objects, etc.

Defined in

temp/components/core/SimpleCamera/index.ts:31


name

name: string = "SimpleCamera"

name

Overrides

Component.name

Defined in

temp/components/core/SimpleCamera/index.ts:17

Accessors

enabled

get enabled(): boolean

enabled

Returns

boolean

Overrides

Component.enabled

Defined in

temp/components/core/SimpleCamera/index.ts:34

set enabled(enabled): void

enabled

Parameters

NameType
enabledboolean

Returns

void

Overrides

Component.enabled

Defined in

temp/components/core/SimpleCamera/index.ts:39

Methods

dispose

dispose(): void

dispose

Returns

void

Implementation of

Disposable.dispose

Defined in

temp/components/core/SimpleCamera/index.ts:66


get

get(): PerspectiveCamera | OrthographicCamera

get

Returns

PerspectiveCamera | OrthographicCamera

Overrides

Component.get

Defined in

temp/components/core/SimpleCamera/index.ts:61


hasUI

hasUI(): this is UI

Whether is component implements any kind of UI.

Returns

this is UI

Inherited from

Component.hasUI

Defined in

temp/components/base-types/component.ts:48


isDisposeable

isDisposeable(): this is Disposable

Whether is component is Disposable.

Returns

this is Disposable

Inherited from

Component.isDisposeable

Defined in

temp/components/base-types/component.ts:28


isHideable

isHideable(): this is Hideable

Whether is component is Hideable.

Returns

this is Hideable

Inherited from

Component.isHideable

Defined in

temp/components/base-types/component.ts:43


isResizeable

isResizeable(): this is Resizeable

Whether is component is Resizeable.

Returns

this is Resizeable

Inherited from

Component.isResizeable

Defined in

temp/components/base-types/component.ts:33


isUpdateable

isUpdateable(): this is Updateable

Whether is component is Updateable.

Returns

this is Updateable

Inherited from

Component.isUpdateable

Defined in

temp/components/base-types/component.ts:38


update

update(_delta): void

update

Parameters

NameType
_deltanumber

Returns

void

Implementation of

Updateable.update

Defined in

temp/components/core/SimpleCamera/index.ts:75


updateAspect

updateAspect(): void

Updates the aspect of the camera to match the size of the renderer.

Returns

void

Defined in

temp/components/core/SimpleCamera/index.ts:87