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
Component
<THREE.PerspectiveCamera
|THREE.OrthographicCamera
>↳
SimpleCamera
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
>
Implementation of
Defined in
temp/components/core/SimpleCamera/index.ts:23
beforeUpdate
• Readonly
beforeUpdate: Event
<SimpleCamera
>
Implementation of
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"
Overrides
Defined in
temp/components/core/SimpleCamera/index.ts:17
Accessors
enabled
• get
enabled(): boolean
Returns
boolean
Overrides
Component.enabled
Defined in
temp/components/core/SimpleCamera/index.ts:34
• set
enabled(enabled
): void
Parameters
Name | Type |
---|---|
enabled | boolean |
Returns
void
Overrides
Component.enabled
Defined in
temp/components/core/SimpleCamera/index.ts:39
Methods
dispose
▸ dispose(): void
Returns
void
Implementation of
Disposable.dispose
Defined in
temp/components/core/SimpleCamera/index.ts:66
get
▸ get(): PerspectiveCamera
| OrthographicCamera
Returns
PerspectiveCamera
| OrthographicCamera
Overrides
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
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
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
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
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
Defined in
temp/components/base-types/component.ts:38
update
▸ update(_delta
): void
Parameters
Name | Type |
---|---|
_delta | number |
Returns
void
Implementation of
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