API ReferenceGlobalsPerspectiveOffsetCamera

# Interface: PerspectiveOffsetCamera

# Hierarchy

  • PerspectiveCamera

    PerspectiveOffsetCamera

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new PerspectiveOffsetCamera(fov?: number, aspect?: number, near?: number, far?: number): PerspectiveOffsetCamera

Inherited from PerspectiveOffsetCamera.constructor

Overrides void

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:8

Parameters:

Name Type
fov? number
aspect? number
near? number
far? number

Returns: PerspectiveOffsetCamera

# Properties

# animations

animations: AnimationClip[]

Inherited from RoomleComponent.animations

Defined in node_modules/three/src/core/Object3D.d.ts:161

Array with animation clips.

default []


# aspect

aspect: number

Inherited from PerspectiveOffsetCamera.aspect

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:37

Camera frustum aspect ratio, window width divided by window height.

default 1


# castShadow

castShadow: boolean

Inherited from RoomleComponent.castShadow

Defined in node_modules/three/src/core/Object3D.d.ts:137

Gets rendered into shadow map.

default false


# children

children: Object3D[]

Inherited from RoomleComponent.children

Defined in node_modules/three/src/core/Object3D.d.ts:57

Array with object's children.

default []


# customDepthMaterial

customDepthMaterial: Material

Inherited from RoomleComponent.customDepthMaterial

Defined in node_modules/three/src/core/Object3D.d.ts:175

Custom depth material to be used when rendering to the depth map. Can only be used in context of meshes. When shadow-casting with a DirectionalLight or SpotLight, if you are (a) modifying vertex positions in the vertex shader, (b) using a displacement map, (c) using an alpha map with alphaTest, or (d) using a transparent texture with alphaTest, you must specify a customDepthMaterial for proper shadows.


# customDistanceMaterial

customDistanceMaterial: Material

Inherited from RoomleComponent.customDistanceMaterial

Defined in node_modules/three/src/core/Object3D.d.ts:180

Same as customDepthMaterial, but used with PointLight.


# far

far: number

Inherited from PerspectiveOffsetCamera.far

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:49

Camera frustum far plane.

default 2000


# filmGauge

filmGauge: number

Inherited from PerspectiveOffsetCamera.filmGauge

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:72

default 35


# filmOffset

filmOffset: number

Inherited from PerspectiveOffsetCamera.filmOffset

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:77

default 0


# focus

focus: number

Inherited from PerspectiveOffsetCamera.focus

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:54

default 10


# fov

fov: number

Inherited from PerspectiveOffsetCamera.fov

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:31

Camera frustum vertical field of view, from bottom to top of view, in degrees.

default 50


# frustumCulled

frustumCulled: boolean

Inherited from RoomleComponent.frustumCulled

Defined in node_modules/three/src/core/Object3D.d.ts:149

When this is set, it checks every frame if the object is in the frustum of the camera. Otherwise the object gets drawn every frame even if it isn't visible.

default true


# id

id: number

Inherited from RoomleComponent.id

Defined in node_modules/three/src/core/Object3D.d.ts:29

Unique number of this object instance.


# isCamera

isCamera: true

Inherited from PerspectiveOffsetCamera.isCamera

Defined in node_modules/three/src/cameras/Camera.d.ts:35


# isObject3D

isObject3D: true

Inherited from RoomleComponent.isObject3D

Defined in node_modules/three/src/core/Object3D.d.ts:186

Used to check whether this or derived classes are Object3Ds. Default is true. You should not change this, as it is used internally for optimisation.


# isPerspectiveCamera

isPerspectiveCamera: true

Inherited from PerspectiveOffsetCamera.isPerspectiveCamera

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:20


# layers

layers: Layers

Inherited from RoomleComponent.layers

Defined in node_modules/three/src/core/Object3D.d.ts:126

default new THREE.Layers()


# matrix

matrix: Matrix4

Inherited from RoomleComponent.matrix

Defined in node_modules/three/src/core/Object3D.d.ts:103

Local transform.

default new THREE.Matrix4()


# matrixAutoUpdate

matrixAutoUpdate: boolean

Inherited from RoomleComponent.matrixAutoUpdate

Defined in node_modules/three/src/core/Object3D.d.ts:115

When this is set, it calculates the matrix of position, (rotation or quaternion) and scale every frame and also recalculates the matrixWorld property.

default THREE.Object3D.DefaultMatrixAutoUpdate


# matrixWorld

matrixWorld: Matrix4

Inherited from RoomleComponent.matrixWorld

Defined in node_modules/three/src/core/Object3D.d.ts:109

The global transform of the object. If the Object3d has no parent, then it's identical to the local transform.

default new THREE.Matrix4()


# matrixWorldInverse

matrixWorldInverse: Matrix4

Inherited from PerspectiveOffsetCamera.matrixWorldInverse

Defined in node_modules/three/src/cameras/Camera.d.ts:21

This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has the world transform of the Camera.

default new THREE.Matrix4()


# matrixWorldNeedsUpdate

matrixWorldNeedsUpdate: boolean

Inherited from RoomleComponent.matrixWorldNeedsUpdate

Defined in node_modules/three/src/core/Object3D.d.ts:121

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

default false


# modelViewMatrix

modelViewMatrix: Matrix4

Inherited from RoomleComponent.modelViewMatrix

Defined in node_modules/three/src/core/Object3D.d.ts:92

default new THREE.Matrix4()


# name

name: string

Inherited from RoomleComponent.name

Defined in node_modules/three/src/core/Object3D.d.ts:40

Optional name of the object (doesn't need to be unique).

default ''


# near

near: number

Inherited from PerspectiveOffsetCamera.near

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:43

Camera frustum near plane.

default 0.1


# normalMatrix

normalMatrix: Matrix3

Inherited from RoomleComponent.normalMatrix

Defined in node_modules/three/src/core/Object3D.d.ts:97

default new THREE.Matrix3()


# offset

offset: CanvasOffset

Defined in packages/common-core/src/webgl/roomle-component-factory.ts:112


# onAfterRender

onAfterRender: function

Inherited from RoomleComponent.onAfterRender

Defined in node_modules/three/src/core/Object3D.d.ts:203

Calls after rendering object

# Type declaration:

▸ (renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: Geometry | BufferGeometry, material: Material, group: Group): void

Parameters:

Name Type
renderer WebGLRenderer
scene Scene
camera Camera
geometry Geometry | BufferGeometry
material Material
group Group

# onBeforeRender

onBeforeRender: function

Inherited from RoomleComponent.onBeforeRender

Defined in node_modules/three/src/core/Object3D.d.ts:191

Calls before rendering object

# Type declaration:

▸ (renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: Geometry | BufferGeometry, material: Material, group: Group): void

Parameters:

Name Type
renderer WebGLRenderer
scene Scene
camera Camera
geometry Geometry | BufferGeometry
material Material
group Group

# parent

parent: Object3D | null

Inherited from RoomleComponent.parent

Defined in node_modules/three/src/core/Object3D.d.ts:51

Object's parent in the scene graph.

default null


# position

position: Vector3

Inherited from RoomleComponent.position

Defined in node_modules/three/src/core/Object3D.d.ts:69

Object's local position.

default new THREE.Vector3()


# projectionMatrix

projectionMatrix: Matrix4

Inherited from PerspectiveOffsetCamera.projectionMatrix

Defined in node_modules/three/src/cameras/Camera.d.ts:27

This is the matrix which contains the projection.

default new THREE.Matrix4()


# projectionMatrixInverse

projectionMatrixInverse: Matrix4

Inherited from PerspectiveOffsetCamera.projectionMatrixInverse

Defined in node_modules/three/src/cameras/Camera.d.ts:33

This is the inverse of projectionMatrix.

default new THREE.Matrix4()


# quaternion

quaternion: Quaternion

Inherited from RoomleComponent.quaternion

Defined in node_modules/three/src/core/Object3D.d.ts:81

Object's local rotation as a Quaternion.

default new THREE.Quaternion()


# receiveShadow

receiveShadow: boolean

Inherited from RoomleComponent.receiveShadow

Defined in node_modules/three/src/core/Object3D.d.ts:143

Material gets baked in shadow receiving.

default false


# renderOrder

renderOrder: number

Inherited from RoomleComponent.renderOrder

Defined in node_modules/three/src/core/Object3D.d.ts:155

Overrides the default rendering order of scene graph objects, from lowest to highest renderOrder. Opaque and transparent objects remain sorted independently though. When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.

default 0


# rotation

rotation: Euler

Inherited from RoomleComponent.rotation

Defined in node_modules/three/src/core/Object3D.d.ts:75

Object's local rotation (Euler angles), in radians.

default new THREE.Euler()


# scale

scale: Vector3

Inherited from RoomleComponent.scale

Defined in node_modules/three/src/core/Object3D.d.ts:87

Object's local scale.

default new THREE.Vector3()


# type

type: "PerspectiveCamera"

Inherited from PerspectiveOffsetCamera.type

Overrides RoomleComponent.type

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:18


# up

up: Vector3

Inherited from RoomleComponent.up

Defined in node_modules/three/src/core/Object3D.d.ts:63

Up direction.

default THREE.Object3D.DefaultUp.clone()


# userData

userData: object

Inherited from RoomleComponent.userData

Defined in node_modules/three/src/core/Object3D.d.ts:167

An object that can be used to store custom data about the Object3d. It should not hold references to functions as these will not be cloned.

default {}

# Type declaration:

  • [ key: string]: any

# uuid

uuid: string

Inherited from RoomleComponent.uuid

Defined in node_modules/three/src/core/Object3D.d.ts:34


# view

view: null | object

Inherited from PerspectiveOffsetCamera.view

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:59

default null


# visible

visible: boolean

Inherited from RoomleComponent.visible

Defined in node_modules/three/src/core/Object3D.d.ts:131

Object gets rendered if true.

default true


# zoom

zoom: number

Inherited from PerspectiveOffsetCamera.zoom

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:25

default 1


# Static DefaultMatrixAutoUpdate

DefaultMatrixAutoUpdate: boolean

Inherited from RoomleComponent.DefaultMatrixAutoUpdate

Defined in node_modules/three/src/core/Object3D.d.ts:213


# Static DefaultUp

DefaultUp: Vector3

Inherited from RoomleComponent.DefaultUp

Defined in node_modules/three/src/core/Object3D.d.ts:212

# Methods

# add

add(...object: Object3D[]): this

Inherited from RoomleComponent.add

Defined in node_modules/three/src/core/Object3D.d.ts:319

Adds object as child of this object.

Parameters:

Name Type
...object Object3D[]

Returns: this


# addEventListener

addEventListener(type: string, listener: function): void

Inherited from RoomleComponent.addEventListener

Defined in node_modules/three/src/core/EventDispatcher.d.ts:27

Adds a listener to an event type.

Parameters:

type: string

The type of event to listen to.

listener: function

The function that gets called when the event is fired.

▸ (event: Event): void

Parameters:

Name Type
event Event

Returns: void


# applyMatrix4

applyMatrix4(matrix: Matrix4): void

Inherited from RoomleComponent.applyMatrix4

Defined in node_modules/three/src/core/Object3D.d.ts:218

This updates the position, rotation and scale with the matrix.

Parameters:

Name Type
matrix Matrix4

Returns: void


# applyQuaternion

applyQuaternion(quaternion: Quaternion): this

Inherited from RoomleComponent.applyQuaternion

Defined in node_modules/three/src/core/Object3D.d.ts:220

Parameters:

Name Type
quaternion Quaternion

Returns: this


# attach

attach(object: Object3D): this

Inherited from RoomleComponent.attach

Defined in node_modules/three/src/core/Object3D.d.ts:334

Adds object as a child of this, while maintaining the object's world transform.

Parameters:

Name Type
object Object3D

Returns: this


# clear

clear(): this

Inherited from RoomleComponent.clear

Defined in node_modules/three/src/core/Object3D.d.ts:329

Removes all child objects.

Returns: this


# clearViewOffset

clearViewOffset(): void

Inherited from PerspectiveOffsetCamera.clearViewOffset

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:130

Returns: void


# clone

clone(recursive?: boolean): this

Inherited from RoomleComponent.clone

Defined in node_modules/three/src/core/Object3D.d.ts:382

Parameters:

Name Type
recursive? boolean

Returns: this


# copy

copy(source: this, recursive?: boolean): this

Inherited from RoomleComponent.copy

Defined in node_modules/three/src/core/Object3D.d.ts:389

Parameters:

Name Type Description
source this -
recursive? boolean

Returns: this


# dispatchEvent

dispatchEvent(event: object): void

Inherited from RoomleComponent.dispatchEvent

Defined in node_modules/three/src/core/EventDispatcher.d.ts:47

Fire an event type.

Parameters:

event: object

Name Type
type string

Returns: void


# getEffectiveFOV

getEffectiveFOV(): number

Inherited from PerspectiveOffsetCamera.getEffectiveFOV

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:81

Returns: number


# getFilmHeight

getFilmHeight(): number

Inherited from PerspectiveOffsetCamera.getFilmHeight

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:83

Returns: number


# getFilmWidth

getFilmWidth(): number

Inherited from PerspectiveOffsetCamera.getFilmWidth

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:82

Returns: number


# getFocalLength

getFocalLength(): number

Inherited from PerspectiveOffsetCamera.getFocalLength

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:80

Returns: number


# getObjectById

getObjectById(id: number): Object3D | undefined

Inherited from RoomleComponent.getObjectById

Defined in node_modules/three/src/core/Object3D.d.ts:340

Searches through the object's children and returns the first with a matching id.

Parameters:

Name Type Description
id number Unique number of the object instance

Returns: Object3D | undefined


# getObjectByName

getObjectByName(name: string): Object3D | undefined

Inherited from RoomleComponent.getObjectByName

Defined in node_modules/three/src/core/Object3D.d.ts:346

Searches through the object's children and returns the first with a matching name.

Parameters:

Name Type Description
name string String to match to the children's Object3d.name property.

Returns: Object3D | undefined


# getObjectByProperty

getObjectByProperty(name: string, value: string): Object3D | undefined

Inherited from RoomleComponent.getObjectByProperty

Defined in node_modules/three/src/core/Object3D.d.ts:348

Parameters:

Name Type
name string
value string

Returns: Object3D | undefined


# getWorldDirection

getWorldDirection(target: Vector3): Vector3

Inherited from PerspectiveOffsetCamera.getWorldDirection

Overrides RoomleComponent.getWorldDirection

Defined in node_modules/three/src/cameras/Camera.d.ts:37

Parameters:

Name Type
target Vector3

Returns: Vector3


# getWorldPosition

getWorldPosition(target: Vector3): Vector3

Inherited from RoomleComponent.getWorldPosition

Defined in node_modules/three/src/core/Object3D.d.ts:350

Parameters:

Name Type
target Vector3

Returns: Vector3


# getWorldQuaternion

getWorldQuaternion(target: Quaternion): Quaternion

Inherited from RoomleComponent.getWorldQuaternion

Defined in node_modules/three/src/core/Object3D.d.ts:351

Parameters:

Name Type
target Quaternion

Returns: Quaternion


# getWorldScale

getWorldScale(target: Vector3): Vector3

Inherited from RoomleComponent.getWorldScale

Defined in node_modules/three/src/core/Object3D.d.ts:352

Parameters:

Name Type
target Vector3

Returns: Vector3


# hasEventListener

hasEventListener(type: string, listener: function): boolean

Inherited from RoomleComponent.hasEventListener

Defined in node_modules/three/src/core/EventDispatcher.d.ts:34

Checks if listener is added to an event type.

Parameters:

type: string

The type of event to listen to.

listener: function

The function that gets called when the event is fired.

▸ (event: Event): void

Parameters:

Name Type
event Event

Returns: boolean


# localToWorld

localToWorld(vector: Vector3): Vector3

Inherited from RoomleComponent.localToWorld

Defined in node_modules/three/src/core/Object3D.d.ts:302

Updates the vector from local space to world space.

Parameters:

Name Type Description
vector Vector3 A local vector.

Returns: Vector3


# lookAt

lookAt(vector: Vector3 | number, y?: number, z?: number): void

Inherited from RoomleComponent.lookAt

Defined in node_modules/three/src/core/Object3D.d.ts:314

Rotates object to face point in space.

Parameters:

Name Type Description
vector Vector3 | number A world vector to look at.
y? number -
z? number -

Returns: void


# raycast

raycast(raycaster: Raycaster, intersects: Intersection[]): void

Inherited from RoomleComponent.raycast

Defined in node_modules/three/src/core/Object3D.d.ts:355

Parameters:

Name Type
raycaster Raycaster
intersects Intersection[]

Returns: void


# remove

remove(...object: Object3D[]): this

Inherited from RoomleComponent.remove

Defined in node_modules/three/src/core/Object3D.d.ts:324

Removes object as child of this object.

Parameters:

Name Type
...object Object3D[]

Returns: this


# removeEventListener

removeEventListener(type: string, listener: function): void

Inherited from RoomleComponent.removeEventListener

Defined in node_modules/three/src/core/EventDispatcher.d.ts:41

Removes a listener from an event type.

Parameters:

type: string

The type of the listener that gets removed.

listener: function

The listener function that gets removed.

▸ (event: Event): void

Parameters:

Name Type
event Event

Returns: void


# rotateOnAxis

rotateOnAxis(axis: Vector3, angle: number): this

Inherited from RoomleComponent.rotateOnAxis

Defined in node_modules/three/src/core/Object3D.d.ts:247

Rotate an object along an axis in object space. The axis is assumed to be normalized.

Parameters:

Name Type Description
axis Vector3 A normalized vector in object space.
angle number The angle in radians.

Returns: this


# rotateOnWorldAxis

rotateOnWorldAxis(axis: Vector3, angle: number): this

Inherited from RoomleComponent.rotateOnWorldAxis

Defined in node_modules/three/src/core/Object3D.d.ts:254

Rotate an object along an axis in world space. The axis is assumed to be normalized. Method Assumes no rotated parent.

Parameters:

Name Type Description
axis Vector3 A normalized vector in object space.
angle number The angle in radians.

Returns: this


# rotateX

rotateX(angle: number): this

Inherited from RoomleComponent.rotateX

Defined in node_modules/three/src/core/Object3D.d.ts:260

Parameters:

Name Type Description
angle number

Returns: this


# rotateY

rotateY(angle: number): this

Inherited from RoomleComponent.rotateY

Defined in node_modules/three/src/core/Object3D.d.ts:266

Parameters:

Name Type Description
angle number

Returns: this


# rotateZ

rotateZ(angle: number): this

Inherited from RoomleComponent.rotateZ

Defined in node_modules/three/src/core/Object3D.d.ts:272

Parameters:

Name Type Description
angle number

Returns: this


# setFocalLength

setFocalLength(focalLength: number): void

Inherited from PerspectiveOffsetCamera.setFocalLength

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:79

Parameters:

Name Type
focalLength number

Returns: void


# setLens

setLens(focalLength: number, frameHeight?: number): void

Inherited from PerspectiveOffsetCamera.setLens

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:141

deprecated Use {@link PerspectiveCamera#setFocalLength .setFocalLength()} and {@link PerspectiveCamera#filmGauge .filmGauge} instead.

Parameters:

Name Type
focalLength number
frameHeight? number

Returns: void


# setRotationFromAxisAngle

setRotationFromAxisAngle(axis: Vector3, angle: number): void

Inherited from RoomleComponent.setRotationFromAxisAngle

Defined in node_modules/three/src/core/Object3D.d.ts:225

Parameters:

Name Type
axis Vector3
angle number

Returns: void


# setRotationFromEuler

setRotationFromEuler(euler: Euler): void

Inherited from RoomleComponent.setRotationFromEuler

Defined in node_modules/three/src/core/Object3D.d.ts:230

Parameters:

Name Type
euler Euler

Returns: void


# setRotationFromMatrix

setRotationFromMatrix(m: Matrix4): void

Inherited from RoomleComponent.setRotationFromMatrix

Defined in node_modules/three/src/core/Object3D.d.ts:235

Parameters:

Name Type
m Matrix4

Returns: void


# setRotationFromQuaternion

setRotationFromQuaternion(q: Quaternion): void

Inherited from RoomleComponent.setRotationFromQuaternion

Defined in node_modules/three/src/core/Object3D.d.ts:240

Parameters:

Name Type
q Quaternion

Returns: void


# setViewOffset

setViewOffset(fullWidth: number, fullHeight: number, x: number, y: number, width: number, height: number): void

Inherited from PerspectiveOffsetCamera.setViewOffset

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:122

Sets an offset in a larger frustum. This is useful for multi-window or multi-monitor/multi-machine setups. For example, if you have 3x2 monitors and each monitor is 1920x1080 and the monitors are in grid like this:

	 +---+---+---+
	 | A | B | C |
	 +---+---+---+
	 | D | E | F |
	 +---+---+---+

then for each monitor you would call it like this:

	 const w = 1920;
	 const h = 1080;
	 const fullWidth = w * 3;
	 const fullHeight = h * 2;

	 // A
	 camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );
	 // B
	 camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );
	 // C
	 camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );
	 // D
	 camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
	 // E
	 camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
	 // F
	 camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h ); Note there is no reason monitors have to be the same size or in a grid.

Parameters:

Name Type Description
fullWidth number full width of multiview setup
fullHeight number full height of multiview setup
x number horizontal offset of subcamera
y number vertical offset of subcamera
width number width of subcamera
height number height of subcamera

Returns: void


# toJSON

toJSON(meta?: any): any

Inherited from PerspectiveOffsetCamera.toJSON

Overrides RoomleComponent.toJSON

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:136

Parameters:

Name Type
meta? any

Returns: any


# translateOnAxis

translateOnAxis(axis: Vector3, distance: number): this

Inherited from RoomleComponent.translateOnAxis

Defined in node_modules/three/src/core/Object3D.d.ts:278

Parameters:

Name Type Description
axis Vector3 A normalized vector in object space.
distance number The distance to translate.

Returns: this


# translateX

translateX(distance: number): this

Inherited from RoomleComponent.translateX

Defined in node_modules/three/src/core/Object3D.d.ts:284

Translates object along x axis by distance.

Parameters:

Name Type Description
distance number Distance.

Returns: this


# translateY

translateY(distance: number): this

Inherited from RoomleComponent.translateY

Defined in node_modules/three/src/core/Object3D.d.ts:290

Translates object along y axis by distance.

Parameters:

Name Type Description
distance number Distance.

Returns: this


# translateZ

translateZ(distance: number): this

Inherited from RoomleComponent.translateZ

Defined in node_modules/three/src/core/Object3D.d.ts:296

Translates object along z axis by distance.

Parameters:

Name Type Description
distance number Distance.

Returns: this


# traverse

traverse(callback: function): void

Inherited from RoomleComponent.traverse

Defined in node_modules/three/src/core/Object3D.d.ts:357

Parameters:

callback: function

▸ (object: Object3D): any

Parameters:

Name Type
object Object3D

Returns: void


# traverseAncestors

traverseAncestors(callback: function): void

Inherited from RoomleComponent.traverseAncestors

Defined in node_modules/three/src/core/Object3D.d.ts:361

Parameters:

callback: function

▸ (object: Object3D): any

Parameters:

Name Type
object Object3D

Returns: void


# traverseVisible

traverseVisible(callback: function): void

Inherited from RoomleComponent.traverseVisible

Defined in node_modules/three/src/core/Object3D.d.ts:359

Parameters:

callback: function

▸ (object: Object3D): any

Parameters:

Name Type
object Object3D

Returns: void


# updateMatrix

updateMatrix(): void

Inherited from RoomleComponent.updateMatrix

Defined in node_modules/three/src/core/Object3D.d.ts:366

Updates local transform.

Returns: void


# updateMatrixWorld

updateMatrixWorld(force?: boolean): void

Inherited from PerspectiveOffsetCamera.updateMatrixWorld

Overrides RoomleComponent.updateMatrixWorld

Defined in node_modules/three/src/cameras/Camera.d.ts:39

Parameters:

Name Type
force? boolean

Returns: void


# updateProjectionMatrix

updateProjectionMatrix(): void

Inherited from PerspectiveOffsetCamera.updateProjectionMatrix

Defined in node_modules/three/src/cameras/PerspectiveCamera.d.ts:135

Updates the camera projection matrix. Must be called after change of parameters.

Returns: void


# updateWorldMatrix

updateWorldMatrix(updateParents: boolean, updateChildren: boolean): void

Inherited from RoomleComponent.updateWorldMatrix

Defined in node_modules/three/src/core/Object3D.d.ts:373

Parameters:

Name Type
updateParents boolean
updateChildren boolean

Returns: void


# worldToLocal

worldToLocal(vector: Vector3): Vector3

Inherited from RoomleComponent.worldToLocal

Defined in node_modules/three/src/core/Object3D.d.ts:308

Updates the vector from world space to local space.

Parameters:

Name Type Description
vector Vector3 A world vector.

Returns: Vector3