Skip to content

@jpmorganchase/anu / Exports / TextureGlobe

Class: TextureGlobe

Hierarchy

  • TransformNode

    TextureGlobe

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new TextureGlobe(name, layers, view, resolution, diameter, scene?): TextureGlobe

Parameters

NameType
namestring
layersTileLayer<OSM>[]
viewView
resolutionVector2
diameternumber
scene?Scene

Returns

TextureGlobe

Overrides

TransformNode.constructor

Defined in

src/prefabs/Mapping/textureGlobe.ts:41

Properties

_accessibilityTag

Protected _accessibilityTag: IAccessibilityTag

Inherited from

TransformNode._accessibilityTag

Defined in

node_modules/@babylonjs/core/node.d.ts:82


_cache

_cache: any

Inherited from

TransformNode._cache

Defined in

node_modules/@babylonjs/core/node.d.ts:119


_childUpdateId

_childUpdateId: number

Inherited from

TransformNode._childUpdateId

Defined in

node_modules/@babylonjs/core/node.d.ts:109


_children

Protected _children: Node[]

Inherited from

TransformNode._children

Defined in

node_modules/@babylonjs/core/node.d.ts:122


_currentRenderId

_currentRenderId: number

Inherited from

TransformNode._currentRenderId

Defined in

node_modules/@babylonjs/core/node.d.ts:106


_disposePhysicsObserver

_disposePhysicsObserver: Observer<Node>

Inherited from

TransformNode._disposePhysicsObserver

Defined in

node_modules/@babylonjs/core/Physics/v2/physicsEngineComponent.d.ts:35


_indexInSceneTransformNodesArray

_indexInSceneTransformNodesArray: number

Inherited from

TransformNode._indexInSceneTransformNodesArray

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:112


_internalMetadata

_internalMetadata: any

Inherited from

TransformNode._internalMetadata

Defined in

node_modules/@babylonjs/core/node.d.ts:67


_isDirty

Protected _isDirty: boolean

Inherited from

TransformNode._isDirty

Defined in

node_modules/@babylonjs/core/node.d.ts:24


_isNode

Readonly _isNode: true

Inherited from

TransformNode._isNode

Defined in

node_modules/@babylonjs/core/node.d.ts:160


_isWorldMatrixFrozen

Protected _isWorldMatrixFrozen: boolean

Inherited from

TransformNode._isWorldMatrixFrozen

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:110


_localMatrix

_localMatrix: Matrix

Inherited from

TransformNode._localMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:101


_parentContainer

_parentContainer: AbstractScene

Inherited from

TransformNode._parentContainer

Defined in

node_modules/@babylonjs/core/node.d.ts:93


_parentNode

Protected _parentNode: Node

Inherited from

TransformNode._parentNode

Defined in

node_modules/@babylonjs/core/node.d.ts:120


_physicsBody

_physicsBody: PhysicsBody

Inherited from

TransformNode._physicsBody

Defined in

node_modules/@babylonjs/core/Physics/v2/physicsEngineComponent.d.ts:14


_poseMatrix

_poseMatrix: Matrix

Inherited from

TransformNode._poseMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:99


_postMultiplyPivotMatrix

_postMultiplyPivotMatrix: boolean

Inherited from

TransformNode._postMultiplyPivotMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:109


_ranges

Protected _ranges: Object

Index signature

▪ [name: string]: Nullable<AnimationRange>

Inherited from

TransformNode._ranges

Defined in

node_modules/@babylonjs/core/node.d.ts:98


_scaling

Protected _scaling: Vector3

Inherited from

TransformNode._scaling

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:52


_scene

_scene: Scene

Inherited from

TransformNode._scene

Defined in

node_modules/@babylonjs/core/node.d.ts:117


_waitingParentId

_waitingParentId: string

Inherited from

TransformNode._waitingParentId

Defined in

node_modules/@babylonjs/core/node.d.ts:111


_waitingParentInstanceIndex

_waitingParentInstanceIndex: string

Inherited from

TransformNode._waitingParentInstanceIndex

Defined in

node_modules/@babylonjs/core/node.d.ts:113


_waitingParsedUniqueId

_waitingParsedUniqueId: number

Inherited from

TransformNode._waitingParsedUniqueId

Defined in

node_modules/@babylonjs/core/node.d.ts:115


_worldMatrix

_worldMatrix: Matrix

Inherited from

TransformNode._worldMatrix

Defined in

node_modules/@babylonjs/core/node.d.ts:124


_worldMatrixDeterminant

_worldMatrixDeterminant: number

Inherited from

TransformNode._worldMatrixDeterminant

Defined in

node_modules/@babylonjs/core/node.d.ts:126


_worldMatrixDeterminantIsDirty

_worldMatrixDeterminantIsDirty: boolean

Inherited from

TransformNode._worldMatrixDeterminantIsDirty

Defined in

node_modules/@babylonjs/core/node.d.ts:128


animations

animations: Animation[]

Gets a list of Animations associated with the node

Inherited from

TransformNode.animations

Defined in

node_modules/@babylonjs/core/node.d.ts:97


container

container: HTMLElement

Defined in

src/prefabs/Mapping/textureGlobe.ts:33


context

context: Context

Defined in

src/prefabs/Mapping/textureGlobe.ts:37


diameter

diameter: number

Defined in

src/prefabs/Mapping/textureGlobe.ts:38


id

id: string

Gets or sets the id of the node

Inherited from

TransformNode.id

Defined in

node_modules/@babylonjs/core/node.d.ts:53


ignoreNonUniformScaling

ignoreNonUniformScaling: boolean

Gets or sets a boolean indicating that non uniform scaling (when at least one component is different from others) should be ignored. By default the system will update normals to compensate

Inherited from

TransformNode.ignoreNonUniformScaling

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:93


inspectableCustomProperties

inspectableCustomProperties: IInspectable[]

List of inspectable custom properties (used by the Inspector)

See

https://doc.babylonjs.com/toolsAndResources/inspector#extensibility

Inherited from

TransformNode.inspectableCustomProperties

Defined in

node_modules/@babylonjs/core/node.d.ts:76


layers

layers: TileLayer<OSM>[]

Defined in

src/prefabs/Mapping/textureGlobe.ts:29


lonLatToVector3

lonLatToVector3: Function

Defined in

src/prefabs/Mapping/textureGlobe.ts:39


map

map: Map

Defined in

src/prefabs/Mapping/textureGlobe.ts:32


mesh

mesh: Mesh

Defined in

src/prefabs/Mapping/textureGlobe.ts:36


metadata

metadata: any

Gets or sets an object used to store user defined information for the node

Inherited from

TransformNode.metadata

Defined in

node_modules/@babylonjs/core/node.d.ts:65


name

name: string

Overrides

TransformNode.name

Defined in

src/prefabs/Mapping/textureGlobe.ts:27


onAccessibilityTagChangedObservable

onAccessibilityTagChangedObservable: Observable<IAccessibilityTag>

Observable fired when an accessibility tag is changed

Inherited from

TransformNode.onAccessibilityTagChangedObservable

Defined in

node_modules/@babylonjs/core/node.d.ts:86


onAfterWorldMatrixUpdateObservable

onAfterWorldMatrixUpdateObservable: Observable<TransformNode>

An event triggered after the world matrix is updated

Inherited from

TransformNode.onAfterWorldMatrixUpdateObservable

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:116


onDisposeObservable

onDisposeObservable: Observable<Node>

An event triggered when the mesh is disposed

Inherited from

TransformNode.onDisposeObservable

Defined in

node_modules/@babylonjs/core/node.d.ts:164


onReady

onReady: (node: Node) => void

Callback raised when the node is ready to be used

Type declaration

▸ (node): void

Parameters
NameType
nodeNode
Returns

void

Inherited from

TransformNode.onReady

Defined in

node_modules/@babylonjs/core/node.d.ts:104


physicsBody

physicsBody: PhysicsBody

See

Inherited from

TransformNode.physicsBody

Defined in

node_modules/@babylonjs/core/Physics/v2/physicsEngineComponent.d.ts:18


reIntegrateRotationIntoRotationQuaternion

reIntegrateRotationIntoRotationQuaternion: boolean

Gets or sets a boolean indicating that even if rotationQuaternion is defined, you can keep updating rotation property and Babylon.js will just mix both

Inherited from

TransformNode.reIntegrateRotationIntoRotationQuaternion

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:97


reservedDataStore

reservedDataStore: any

For internal use only. Please do not use.

Inherited from

TransformNode.reservedDataStore

Defined in

node_modules/@babylonjs/core/node.d.ts:71


resolution

resolution: Vector2

Defined in

src/prefabs/Mapping/textureGlobe.ts:34


scalingDeterminant

scalingDeterminant: number

Multiplication factor on scale x/y/z when computing the world matrix. Eg. for a 1x1x1 cube setting this to 2 will make it a 2x2x2 cube

Inherited from

TransformNode.scalingDeterminant

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:82


scene

Optional scene: Scene

Defined in

src/prefabs/Mapping/textureGlobe.ts:28


state

state: string

Gets or sets a string used to store user defined state for the node

Inherited from

TransformNode.state

Defined in

node_modules/@babylonjs/core/node.d.ts:61


target

target: string

Defined in

src/prefabs/Mapping/textureGlobe.ts:30


texture

texture: DynamicTexture

Defined in

src/prefabs/Mapping/textureGlobe.ts:35


uniqueId

uniqueId: number

Gets or sets the unique id of the node

Inherited from

TransformNode.uniqueId

Defined in

node_modules/@babylonjs/core/node.d.ts:57


view

view: View

Defined in

src/prefabs/Mapping/textureGlobe.ts:31


BILLBOARDMODE_ALL

Static BILLBOARDMODE_ALL: number

Object will rotate to face the camera

Inherited from

TransformNode.BILLBOARDMODE_ALL

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:34


BILLBOARDMODE_NONE

Static BILLBOARDMODE_NONE: number

Object will not rotate to face the camera

Inherited from

TransformNode.BILLBOARDMODE_NONE

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:18


BILLBOARDMODE_USE_POSITION

Static BILLBOARDMODE_USE_POSITION: number

Object will rotate to face the camera's position instead of orientation

Inherited from

TransformNode.BILLBOARDMODE_USE_POSITION

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:38


BILLBOARDMODE_X

Static BILLBOARDMODE_X: number

Object will rotate to face the camera but only on the x axis

Inherited from

TransformNode.BILLBOARDMODE_X

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:22


BILLBOARDMODE_Y

Static BILLBOARDMODE_Y: number

Object will rotate to face the camera but only on the y axis

Inherited from

TransformNode.BILLBOARDMODE_Y

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:26


BILLBOARDMODE_Z

Static BILLBOARDMODE_Z: number

Object will rotate to face the camera but only on the z axis

Inherited from

TransformNode.BILLBOARDMODE_Z

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:30


BillboardUseParentOrientation

Static BillboardUseParentOrientation: boolean

Child transform with Billboard flags should or should not apply parent rotation (default if off)

Inherited from

TransformNode.BillboardUseParentOrientation

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:42


_AnimationRangeFactory

Static _AnimationRangeFactory: (_name: string, _from: number, _to: number) => AnimationRange

Type declaration

▸ (_name, _from, _to): AnimationRange

Parameters
NameType
_namestring
_fromnumber
_tonumber
Returns

AnimationRange

Inherited from

TransformNode._AnimationRangeFactory

Defined in

node_modules/@babylonjs/core/node.d.ts:28

Accessors

absolutePosition

get absolutePosition(): Vector3

Returns the current mesh absolute position. Returns a Vector3.

Returns

Vector3

Inherited from

TransformNode.absolutePosition

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:185


absoluteRotationQuaternion

get absoluteRotationQuaternion(): Quaternion

Returns the current mesh absolute rotation. Returns a Quaternion.

Returns

Quaternion

Inherited from

TransformNode.absoluteRotationQuaternion

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:195


absoluteScaling

get absoluteScaling(): Vector3

Returns the current mesh absolute scaling. Returns a Vector3.

Returns

Vector3

Inherited from

TransformNode.absoluteScaling

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:190


accessibilityTag

get accessibilityTag(): IAccessibilityTag

Returns

IAccessibilityTag

Inherited from

TransformNode.accessibilityTag

Defined in

node_modules/@babylonjs/core/node.d.ts:81

set accessibilityTag(value): void

Gets or sets the accessibility tag to describe the node for accessibility purpose.

Parameters

NameType
valueIAccessibilityTag

Returns

void

Inherited from

TransformNode.accessibilityTag

Defined in

node_modules/@babylonjs/core/node.d.ts:80


animationPropertiesOverride

get animationPropertiesOverride(): AnimationPropertiesOverride

Gets or sets the animation properties override

Returns

AnimationPropertiesOverride

Inherited from

TransformNode.animationPropertiesOverride

Defined in

node_modules/@babylonjs/core/node.d.ts:152

set animationPropertiesOverride(value): void

Parameters

NameType
valueAnimationPropertiesOverride

Returns

void

Inherited from

TransformNode.animationPropertiesOverride

Defined in

node_modules/@babylonjs/core/node.d.ts:153


behaviors

get behaviors(): Behavior<Node>[]

Gets the list of attached behaviors

Returns

Behavior<Node>[]

See

https://doc.babylonjs.com/features/featuresDeepDive/behaviors

Inherited from

TransformNode.behaviors

Defined in

node_modules/@babylonjs/core/node.d.ts:215


billboardMode

get billboardMode(): number

Gets or sets the billboard mode. Default is 0.

ValueTypeDescription
0BILLBOARDMODE_NONE
1BILLBOARDMODE_X
2BILLBOARDMODE_Y
4BILLBOARDMODE_Z
7BILLBOARDMODE_ALL

Returns

number

Inherited from

TransformNode.billboardMode

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:69

set billboardMode(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

TransformNode.billboardMode

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:70


doNotSerialize

get doNotSerialize(): boolean

Gets or sets a boolean used to define if the node must be serialized

Returns

boolean

Inherited from

TransformNode.doNotSerialize

Defined in

node_modules/@babylonjs/core/node.d.ts:90

set doNotSerialize(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

TransformNode.doNotSerialize

Defined in

node_modules/@babylonjs/core/node.d.ts:91


forward

get forward(): Vector3

The forward direction of that transform in world space.

Returns

Vector3

Inherited from

TransformNode.forward

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:157


infiniteDistance

get infiniteDistance(): boolean

Gets or sets the distance of the object to max, often used by skybox

Returns

boolean

Inherited from

TransformNode.infiniteDistance

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:87

set infiniteDistance(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

TransformNode.infiniteDistance

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:88


isWorldMatrixFrozen

get isWorldMatrixFrozen(): boolean

True if the World matrix has been frozen.

Returns

boolean

Inherited from

TransformNode.isWorldMatrixFrozen

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:241


nonUniformScaling

get nonUniformScaling(): boolean

True if the scaling property of this object is non uniform eg. (1,2,1)

Returns

boolean

Inherited from

TransformNode.nonUniformScaling

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:372


onClonedObservable

get onClonedObservable(): Observable<Node>

An event triggered when the node is cloned

Returns

Observable<Node>

Inherited from

TransformNode.onClonedObservable

Defined in

node_modules/@babylonjs/core/node.d.ts:177


onDispose

set onDispose(callback): void

Sets a callback that will be raised when the node will be disposed

Parameters

NameType
callback() => void

Returns

void

Inherited from

TransformNode.onDispose

Defined in

node_modules/@babylonjs/core/node.d.ts:169


onEnabledStateChangedObservable

get onEnabledStateChangedObservable(): Observable<boolean>

An event triggered when the enabled state of the node changes

Returns

Observable<boolean>

Inherited from

TransformNode.onEnabledStateChangedObservable

Defined in

node_modules/@babylonjs/core/node.d.ts:173


parent

get parent(): Node

Returns

Node

Inherited from

TransformNode.parent

Defined in

node_modules/@babylonjs/core/node.d.ts:139

set parent(parent): void

Gets or sets the parent of the node (without keeping the current position in the scene)

Parameters

NameType
parentNode

Returns

void

See

https://doc.babylonjs.com/features/featuresDeepDive/mesh/transforms/parent_pivot/parent

Inherited from

TransformNode.parent

Defined in

node_modules/@babylonjs/core/node.d.ts:138


position

get position(): Vector3

Gets or set the node position (default is (0.0, 0.0, 0.0))

Returns

Vector3

Inherited from

TransformNode.position

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:126

set position(newPosition): void

Parameters

NameType
newPositionVector3

Returns

void

Inherited from

TransformNode.position

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:127


preserveParentRotationForBillboard

get preserveParentRotationForBillboard(): boolean

Gets or sets a boolean indicating that parent rotation should be preserved when using billboards. This could be useful for glTF objects where parent rotation helps converting from right handed to left handed

Returns

boolean

Inherited from

TransformNode.preserveParentRotationForBillboard

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:76

set preserveParentRotationForBillboard(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

TransformNode.preserveParentRotationForBillboard

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:77


get right(): Vector3

The right direction of that transform in world space.

Returns

Vector3

Inherited from

TransformNode.right

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:165


rotation

get rotation(): Vector3

Gets or sets the rotation property : a Vector3 defining the rotation value in radians around each local axis X, Y, Z (default is (0.0, 0.0, 0.0)). If rotation quaternion is set, this Vector3 will be ignored and copy from the quaternion

Returns

Vector3

Inherited from

TransformNode.rotation

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:141

set rotation(newRotation): void

Parameters

NameType
newRotationVector3

Returns

void

Inherited from

TransformNode.rotation

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:142


rotationQuaternion

get rotationQuaternion(): Quaternion

Gets or sets the rotation Quaternion property : this a Quaternion object defining the node rotation by using a unit quaternion (undefined by default, but can be null). If set, only the rotationQuaternion is then used to compute the node rotation (ie. node.rotation will be ignored)

Returns

Quaternion

Inherited from

TransformNode.rotationQuaternion

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:152

set rotationQuaternion(quaternion): void

Parameters

NameType
quaternionQuaternion

Returns

void

Inherited from

TransformNode.rotationQuaternion

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:153


scaling

get scaling(): Vector3

Gets or sets the scaling property : a Vector3 defining the node scaling along each local axis X, Y, Z (default is (1.0, 1.0, 1.0)).

Returns

Vector3

Inherited from

TransformNode.scaling

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:146

set scaling(newScaling): void

Parameters

NameType
newScalingVector3

Returns

void

Inherited from

TransformNode.scaling

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:147


up

get up(): Vector3

The up direction of that transform in world space.

Returns

Vector3

Inherited from

TransformNode.up

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:161


worldMatrixFromCache

get worldMatrixFromCache(): Matrix

Returns directly the latest state of the mesh World matrix. A Matrix is returned.

Returns

Matrix

Inherited from

TransformNode.worldMatrixFromCache

Defined in

node_modules/@babylonjs/core/node.d.ts:234

Methods

_addToSceneRootNodes

_addToSceneRootNodes(): void

Returns

void

Inherited from

TransformNode._addToSceneRootNodes

Defined in

node_modules/@babylonjs/core/node.d.ts:145


_afterComputeWorldMatrix

_afterComputeWorldMatrix(): void

Returns

void

Inherited from

TransformNode._afterComputeWorldMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:462


_getActionManagerForTrigger

_getActionManagerForTrigger(trigger?, _initialCall?): AbstractActionManager

Parameters

NameType
trigger?number
_initialCall?boolean

Returns

AbstractActionManager

Inherited from

TransformNode._getActionManagerForTrigger

Defined in

node_modules/@babylonjs/core/node.d.ts:244


_getDescendants

_getDescendants(results, directDescendantsOnly?, predicate?): void

Parameters

NameType
resultsNode[]
directDescendantsOnly?boolean
predicate?(node: Node) => boolean

Returns

void

Inherited from

TransformNode._getDescendants

Defined in

node_modules/@babylonjs/core/node.d.ts:293


_getEffectiveParent

_getEffectiveParent(): Node

Returns

Node

Inherited from

TransformNode._getEffectiveParent

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:443


_getWorldMatrixDeterminant

_getWorldMatrixDeterminant(): number

Returns

number

Inherited from

TransformNode._getWorldMatrixDeterminant

Defined in

node_modules/@babylonjs/core/node.d.ts:229


_initCache

_initCache(): void

Returns

void

Inherited from

TransformNode._initCache

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:180


_isSynchronized

_isSynchronized(): boolean

Returns

boolean

Inherited from

TransformNode._isSynchronized

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:178


_markSyncedWithParent

_markSyncedWithParent(): void

Returns

void

Inherited from

TransformNode._markSyncedWithParent

Defined in

node_modules/@babylonjs/core/node.d.ts:252


_removeFromSceneRootNodes

_removeFromSceneRootNodes(): void

Returns

void

Inherited from

TransformNode._removeFromSceneRootNodes

Defined in

node_modules/@babylonjs/core/node.d.ts:147


_serializeAsParent

_serializeAsParent(serializationObject): void

Parameters

NameType
serializationObjectany

Returns

void

Inherited from

TransformNode._serializeAsParent

Defined in

node_modules/@babylonjs/core/node.d.ts:143


_setReady

_setReady(state): void

Parameters

NameType
stateboolean

Returns

void

Inherited from

TransformNode._setReady

Defined in

node_modules/@babylonjs/core/node.d.ts:339


_syncParentEnabledState

_syncParentEnabledState(): void

Returns

void

Inherited from

TransformNode._syncParentEnabledState

Defined in

node_modules/@babylonjs/core/node.d.ts:277


_updateCache

_updateCache(_ignoreParentClass?): void

Parameters

NameType
_ignoreParentClass?boolean

Returns

void

Inherited from

TransformNode._updateCache

Defined in

node_modules/@babylonjs/core/node.d.ts:248


_updateNonUniformScalingState

_updateNonUniformScalingState(value): boolean

Parameters

NameType
valueboolean

Returns

boolean

Inherited from

TransformNode._updateNonUniformScalingState

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:376


addBehavior

addBehavior(behavior, attachImmediately?): Node

Attach a behavior to the node

Parameters

NameTypeDescription
behaviorBehavior<Node>defines the behavior to attach
attachImmediately?booleandefines that the behavior must be attached even if the scene is still loading

Returns

Node

the current Node

See

https://doc.babylonjs.com/features/featuresDeepDive/behaviors

Inherited from

TransformNode.addBehavior

Defined in

node_modules/@babylonjs/core/node.d.ts:203


addChild

addChild(mesh, preserveScalingSign?): this

Adds the passed mesh as a child to the current mesh

Parameters

NameTypeDescription
meshTransformNodedefines the child mesh
preserveScalingSign?booleanif true, keep scaling sign of child. Otherwise, scaling sign might change.

Returns

this

the current mesh

Inherited from

TransformNode.addChild

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:360


addRotation

addRotation(x, y, z): TransformNode

Adds a rotation step to the mesh current rotation. x, y, z are Euler angles expressed in radians. This methods updates the current mesh rotation, either mesh.rotation, either mesh.rotationQuaternion if it's set. This means this rotation is made in the mesh local space only. It's useful to set a custom rotation order different from the BJS standard one YXZ. Example : this rotates the mesh first around its local X axis, then around its local Z axis, finally around its local Y axis.

javascript
mesh.addRotation(x1, 0, 0).addRotation(0, 0, z2).addRotation(0, 0, y3);

Note that addRotation() accumulates the passed rotation values to the current ones and computes the .rotation or .rotationQuaternion updated values. Under the hood, only quaternions are used. So it's a little faster is you use .rotationQuaternion because it doesn't need to translate them back to Euler angles.

Parameters

NameTypeDescription
xnumberRotation to add
ynumberRotation to add
znumberRotation to add

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.addRotation

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:439


applyAngularImpulse

applyAngularImpulse(angularImpulse): TransformNode

Apply a physic angular impulse to the mesh

Parameters

NameTypeDescription
angularImpulseVector3defines the torque to apply

Returns

TransformNode

the current mesh

Inherited from

TransformNode.applyAngularImpulse

Defined in

node_modules/@babylonjs/core/Physics/v2/physicsEngineComponent.d.ts:33


applyImpulse

applyImpulse(force, contactPoint): TransformNode

Apply a physic impulse to the mesh

Parameters

NameTypeDescription
forceVector3defines the force to apply
contactPointVector3defines where to apply the force

Returns

TransformNode

the current mesh

Inherited from

TransformNode.applyImpulse

Defined in

node_modules/@babylonjs/core/Physics/v2/physicsEngineComponent.d.ts:28


attachToBone

attachToBone(bone, affectedTransformNode): TransformNode

Attach the current TransformNode to another TransformNode associated with a bone

Parameters

NameTypeDescription
boneBoneBone affecting the TransformNode
affectedTransformNodeTransformNodeTransformNode associated with the bone

Returns

TransformNode

this object

Inherited from

TransformNode.attachToBone

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:383


beginAnimation

beginAnimation(name, loop?, speedRatio?, onAnimationEnd?): Animatable

Will start the animation sequence

Parameters

NameTypeDescription
namestringdefines the range frames for animation sequence
loop?booleandefines if the animation should loop (false by default)
speedRatio?numberdefines the speed factor in which to run the animation (1 by default)
onAnimationEnd?() => voiddefines a function to be executed when the animation ended (undefined by default)

Returns

Animatable

the object created for this animation. If range does not exist, it will return null

Inherited from

TransformNode.beginAnimation

Defined in

node_modules/@babylonjs/core/node.d.ts:386


clone

clone(name, newParent, doNotCloneChildren?): TransformNode

Clone the current transform node

Parameters

NameTypeDescription
namestringName of the new clone
newParentNodeNew parent for the clone
doNotCloneChildren?booleanDo not clone children hierarchy

Returns

TransformNode

the new transform node

Inherited from

TransformNode.clone

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:495


computeWorldMatrix

computeWorldMatrix(force?, camera?): Matrix

Computes the world matrix of the node

Parameters

NameTypeDescription
force?booleandefines if the cache version should be invalidated forcing the world matrix to be created from scratch
camera?Cameradefines the camera used if different from the scene active camera (This is used with modes like Billboard or infinite distance)

Returns

Matrix

the world matrix

Inherited from

TransformNode.computeWorldMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:456


createAnimationRange

createAnimationRange(name, from, to): void

Creates an animation range for this node

Parameters

NameTypeDescription
namestringdefines the name of the range
fromnumberdefines the starting key
tonumberdefines the end key

Returns

void

Inherited from

TransformNode.createAnimationRange

Defined in

node_modules/@babylonjs/core/node.d.ts:352


createContainer

createContainer(): HTMLDivElement

Returns

HTMLDivElement

Defined in

src/prefabs/Mapping/textureGlobe.ts:56


createMesh

createMesh(): Mesh

Returns

Mesh

Defined in

src/prefabs/Mapping/textureGlobe.ts:95


createOLMap

createOLMap(): Map

Returns

Map

Defined in

src/prefabs/Mapping/textureGlobe.ts:67


createScales

createScales(c): Vector3

Parameters

NameType
cCoordinate

Returns

Vector3

Defined in

src/prefabs/Mapping/textureGlobe.ts:111


createTexture

createTexture(): DynamicTexture

Returns

DynamicTexture

Defined in

src/prefabs/Mapping/textureGlobe.ts:77


deleteAnimationRange

deleteAnimationRange(name, deleteFrames?): void

Delete a specific animation range

Parameters

NameTypeDescription
namestringdefines the name of the range to delete
deleteFrames?booleandefines if animation frames from the range must be deleted as well

Returns

void

Inherited from

TransformNode.deleteAnimationRange

Defined in

node_modules/@babylonjs/core/node.d.ts:358


detachFromBone

detachFromBone(resetToPreviousParent?): TransformNode

Detach the transform node if its associated with a bone

Parameters

NameTypeDescription
resetToPreviousParent?booleanIndicates if the parent that was in effect when attachToBone was called should be set back or if we should set parent to null instead (defaults to the latter)

Returns

TransformNode

this object

Inherited from

TransformNode.detachFromBone

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:389


dispose

dispose(doNotRecurse?, disposeMaterialAndTextures?): void

Releases resources associated with this transform node.

Parameters

NameTypeDescription
doNotRecurse?booleanSet to true to not recurse into each children (recurse into each children by default)
disposeMaterialAndTextures?booleanSet to true to also dispose referenced materials and textures (false by default)

Returns

void

Inherited from

TransformNode.dispose

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:522


freezeWorldMatrix

freezeWorldMatrix(newWorldMatrix?, decompose?): TransformNode

Prevents the World matrix to be computed any longer

Parameters

NameTypeDescription
newWorldMatrix?Matrixdefines an optional matrix to use as world matrix
decompose?booleandefines whether to decompose the given newWorldMatrix or directly assign

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.freezeWorldMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:232


getAbsolutePivotPoint

getAbsolutePivotPoint(): Vector3

Returns a new Vector3 set with the mesh pivot point World coordinates.

Returns

Vector3

a new Vector3 set with the mesh pivot point World coordinates.

Inherited from

TransformNode.getAbsolutePivotPoint

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:328


getAbsolutePivotPointToRef

getAbsolutePivotPointToRef(result): TransformNode

Sets the Vector3 "result" coordinates with the mesh pivot point World coordinates.

Parameters

NameTypeDescription
resultVector3vector3 to store the result

Returns

TransformNode

this TransformNode.

Inherited from

TransformNode.getAbsolutePivotPointToRef

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:334


getAbsolutePosition

getAbsolutePosition(): Vector3

Returns the mesh absolute position in the World.

Returns

Vector3

a Vector3.

Inherited from

TransformNode.getAbsolutePosition

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:246


getAnimationByName

getAnimationByName(name): Animation

Get an animation by name

Parameters

NameTypeDescription
namestringdefines the name of the animation to look for

Returns

Animation

null if not found else the requested animation

Inherited from

TransformNode.getAnimationByName

Defined in

node_modules/@babylonjs/core/node.d.ts:345


getAnimationRange

getAnimationRange(name): AnimationRange

Get an animation range by name

Parameters

NameTypeDescription
namestringdefines the name of the animation range to look for

Returns

AnimationRange

null if not found else the requested animation range

Inherited from

TransformNode.getAnimationRange

Defined in

node_modules/@babylonjs/core/node.d.ts:364


getAnimationRanges

getAnimationRanges(): AnimationRange[]

Gets the list of all animation ranges defined on this node

Returns

AnimationRange[]

an array

Inherited from

TransformNode.getAnimationRanges

Defined in

node_modules/@babylonjs/core/node.d.ts:377


getBehaviorByName

getBehaviorByName(name): Behavior<Node>

Gets an attached behavior by name

Parameters

NameTypeDescription
namestringdefines the name of the behavior to look for

Returns

Behavior<Node>

null if behavior was not found else the requested behavior

See

https://doc.babylonjs.com/features/featuresDeepDive/behaviors

Inherited from

TransformNode.getBehaviorByName

Defined in

node_modules/@babylonjs/core/node.d.ts:222


getChildMeshes

getChildMeshes<T>(directDescendantsOnly?, predicate?): T[]

Get all child-meshes of this node

Type parameters

NameType
Textends AbstractMesh

Parameters

NameTypeDescription
directDescendantsOnly?booleandefines if true only direct descendants of 'this' will be considered, if false direct and also indirect (children of children, an so on in a recursive manner) descendants of 'this' will be considered (Default: false)
predicate?(node: Node) => node is Tdefines an optional predicate that will be called on every evaluated child, the predicate must return true for a given child to be part of the result, otherwise it will be ignored

Returns

T[]

an array of AbstractMesh

Inherited from

TransformNode.getChildMeshes

Defined in

node_modules/@babylonjs/core/node.d.ts:314

getChildMeshes(directDescendantsOnly?, predicate?): AbstractMesh[]

Get all child-meshes of this node

Parameters

NameTypeDescription
directDescendantsOnly?booleandefines if true only direct descendants of 'this' will be considered, if false direct and also indirect (children of children, an so on in a recursive manner) descendants of 'this' will be considered (Default: false)
predicate?(node: Node) => booleandefines an optional predicate that will be called on every evaluated child, the predicate must return true for a given child to be part of the result, otherwise it will be ignored

Returns

AbstractMesh[]

an array of AbstractMesh

Inherited from

TransformNode.getChildMeshes

Defined in

node_modules/@babylonjs/core/node.d.ts:321


getChildTransformNodes

getChildTransformNodes(directDescendantsOnly?, predicate?): TransformNode[]

Get all child-transformNodes of this node

Parameters

NameTypeDescription
directDescendantsOnly?booleandefines if true only direct descendants of 'this' will be considered, if false direct and also indirect (children of children, an so on in a recursive manner) descendants of 'this' will be considered
predicate?(node: Node) => booleandefines an optional predicate that will be called on every evaluated child, the predicate must return true for a given child to be part of the result, otherwise it will be ignored

Returns

TransformNode[]

an array of TransformNode

Inherited from

TransformNode.getChildTransformNodes

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:516


getChildren

getChildren<T>(predicate?, directDescendantsOnly?): T[]

Get all direct children of this node

Type parameters

NameType
Textends Node

Parameters

NameTypeDescription
predicate?(node: Node) => node is Tdefines an optional predicate that will be called on every evaluated child, the predicate must return true for a given child to be part of the result, otherwise it will be ignored
directDescendantsOnly?booleandefines if true only direct descendants of 'this' will be considered, if false direct and also indirect (children of children, an so on in a recursive manner) descendants of 'this' will be considered (Default: true)

Returns

T[]

an array of Node

Inherited from

TransformNode.getChildren

Defined in

node_modules/@babylonjs/core/node.d.ts:328

getChildren(predicate?, directDescendantsOnly?): Node[]

Get all direct children of this node

Parameters

NameTypeDescription
predicate?(node: Node) => booleandefines an optional predicate that will be called on every evaluated child, the predicate must return true for a given child to be part of the result, otherwise it will be ignored
directDescendantsOnly?booleandefines if true only direct descendants of 'this' will be considered, if false direct and also indirect (children of children, an so on in a recursive manner) descendants of 'this' will be considered (Default: true)

Returns

Node[]

an array of Node

Inherited from

TransformNode.getChildren

Defined in

node_modules/@babylonjs/core/node.d.ts:335


getClassName

getClassName(): string

Gets a string identifying the name of the class

Returns

string

"TransformNode" string

Inherited from

TransformNode.getClassName

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:122


getDescendants

getDescendants<T>(directDescendantsOnly?, predicate?): T[]

Will return all nodes that have this node as ascendant

Type parameters

NameType
Textends Node

Parameters

NameTypeDescription
directDescendantsOnly?booleandefines if true only direct descendants of 'this' will be considered, if false direct and also indirect (children of children, an so on in a recursive manner) descendants of 'this' will be considered
predicate?(node: Node) => node is Tdefines an optional predicate that will be called on every evaluated child, the predicate must return true for a given child to be part of the result, otherwise it will be ignored

Returns

T[]

all children nodes of all types

Inherited from

TransformNode.getDescendants

Defined in

node_modules/@babylonjs/core/node.d.ts:300

getDescendants(directDescendantsOnly?, predicate?): Node[]

Will return all nodes that have this node as ascendant

Parameters

NameTypeDescription
directDescendantsOnly?booleandefines if true only direct descendants of 'this' will be considered, if false direct and also indirect (children of children, an so on in a recursive manner) descendants of 'this' will be considered
predicate?(node: Node) => booleandefines an optional predicate that will be called on every evaluated child, the predicate must return true for a given child to be part of the result, otherwise it will be ignored

Returns

Node[]

all children nodes of all types

Inherited from

TransformNode.getDescendants

Defined in

node_modules/@babylonjs/core/node.d.ts:307


getDirection

getDirection(localAxis): Vector3

Returns a new Vector3 that is the localAxis, expressed in the mesh local space, rotated like the mesh. This Vector3 is expressed in the World space.

Parameters

NameTypeDescription
localAxisVector3axis to rotate

Returns

Vector3

a new Vector3 that is the localAxis, expressed in the mesh local space, rotated like the mesh.

Inherited from

TransformNode.getDirection

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:287


getDirectionToRef

getDirectionToRef(localAxis, result): TransformNode

Sets the Vector3 "result" as the rotated Vector3 "localAxis" in the same rotation than the mesh. localAxis is expressed in the mesh local space. result is computed in the World space from the mesh World matrix.

Parameters

NameTypeDescription
localAxisVector3axis to rotate
resultVector3the resulting transformnode

Returns

TransformNode

this TransformNode.

Inherited from

TransformNode.getDirectionToRef

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:296


getDistanceToCamera

getDistanceToCamera(camera?): number

Returns the distance from the mesh to the active camera

Parameters

NameTypeDescription
camera?Cameradefines the camera to use

Returns

number

the distance

Inherited from

TransformNode.getDistanceToCamera

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:487


getEngine

getEngine(): AbstractEngine

Gets the engine of the node

Returns

AbstractEngine

a Engine

Inherited from

TransformNode.getEngine

Defined in

node_modules/@babylonjs/core/node.d.ts:194


getHierarchyBoundingVectors

getHierarchyBoundingVectors(includeDescendants?, predicate?): Object

Return the minimum and maximum world vectors of the entire hierarchy under current node

Parameters

NameTypeDescription
includeDescendants?booleanInclude bounding info from descendants as well (true by default)
predicate?(abstractMesh: AbstractMesh) => booleandefines a callback function that can be customize to filter what meshes should be included in the list used to compute the bounding vectors

Returns

Object

the new bounding vectors

NameType
maxVector3
minVector3

Inherited from

TransformNode.getHierarchyBoundingVectors

Defined in

node_modules/@babylonjs/core/node.d.ts:417


getPhysicsBody

getPhysicsBody(): PhysicsBody

Returns

PhysicsBody

Inherited from

TransformNode.getPhysicsBody

Defined in

node_modules/@babylonjs/core/Physics/v2/physicsEngineComponent.d.ts:22


getPivotMatrix

getPivotMatrix(): Matrix

Returns the mesh pivot matrix. Default : Identity.

Returns

Matrix

the matrix

Inherited from

TransformNode.getPivotMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:214


getPivotPoint

getPivotPoint(): Vector3

Returns a new Vector3 set with the mesh pivot point coordinates in the local space.

Returns

Vector3

the pivot point

Inherited from

TransformNode.getPivotPoint

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:317


getPivotPointToRef

getPivotPointToRef(result): TransformNode

Sets the passed Vector3 "result" with the coordinates of the mesh pivot point in the local space.

Parameters

NameTypeDescription
resultVector3the vector3 to store the result

Returns

TransformNode

this TransformNode.

Inherited from

TransformNode.getPivotPointToRef

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:323


getPoseMatrix

getPoseMatrix(): Matrix

Returns the mesh Pose matrix.

Returns

Matrix

the pose matrix

Inherited from

TransformNode.getPoseMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:176


getPositionExpressedInLocalSpace

getPositionExpressedInLocalSpace(): Vector3

Returns the mesh position in the local space from the current World matrix values.

Returns

Vector3

a new Vector3.

Inherited from

TransformNode.getPositionExpressedInLocalSpace

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:263


getPositionInCameraSpace

getPositionInCameraSpace(camera?): Vector3

Gets the position of the current mesh in camera space

Parameters

NameTypeDescription
camera?Cameradefines the camera to use

Returns

Vector3

a position

Inherited from

TransformNode.getPositionInCameraSpace

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:481


getScene

getScene(): Scene

Gets the scene of the node

Returns

Scene

a scene

Inherited from

TransformNode.getScene

Defined in

node_modules/@babylonjs/core/node.d.ts:189


getWorldMatrix

getWorldMatrix(): Matrix

Returns the latest update of the World matrix

Returns

Matrix

a Matrix

Inherited from

TransformNode.getWorldMatrix

Defined in

node_modules/@babylonjs/core/node.d.ts:227


instantiateHierarchy

instantiateHierarchy(newParent?, options?, onNewNodeCreated?): TransformNode

Instantiate (when possible) or clone that node with its hierarchy

Parameters

NameTypeDescription
newParent?TransformNodedefines the new parent to use for the instance (or clone)
options?Objectdefines options to configure how copy is done
options.doNotInstantiateboolean | (node: TransformNode) => booleandefines if the model must be instantiated or just cloned
onNewNodeCreated?(source: TransformNode, clone: TransformNode) => voiddefines an option callback to call when a clone or an instance is created

Returns

TransformNode

an instance (or a clone) of the current node with its hierarchy

Inherited from

TransformNode.instantiateHierarchy

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:223


isDescendantOf

isDescendantOf(ancestor): boolean

Is this node a descendant of the given node? The function will iterate up the hierarchy until the ancestor was found or no more parents defined

Parameters

NameTypeDescription
ancestorNodedefines the parent node to inspect

Returns

boolean

a boolean indicating if this node is a descendant of the given node

Inherited from

TransformNode.isDescendantOf

Defined in

node_modules/@babylonjs/core/node.d.ts:289


isDisposed

isDisposed(): boolean

Gets a boolean indicating if the node has been disposed

Returns

boolean

true if the node was disposed

Inherited from

TransformNode.isDisposed

Defined in

node_modules/@babylonjs/core/node.d.ts:133


isEnabled

isEnabled(checkAncestors?): boolean

Is this node enabled? If the node has a parent, all ancestors will be checked and false will be returned if any are false (not enabled), otherwise will return true

Parameters

NameTypeDescription
checkAncestors?booleanindicates if this method should check the ancestors. The default is to check the ancestors. If set to false, the method will return the value of this node without checking ancestors

Returns

boolean

whether this node (and its parent) is enabled

Inherited from

TransformNode.isEnabled

Defined in

node_modules/@babylonjs/core/node.d.ts:275


isReady

isReady(_completeCheck?): boolean

Is this node ready to be used/rendered

Parameters

NameTypeDescription
_completeCheck?booleandefines if a complete check (including materials and lights) has to be done (false by default)

Returns

boolean

true if the node is ready

Inherited from

TransformNode.isReady

Defined in

node_modules/@babylonjs/core/node.d.ts:262


isSynchronized

isSynchronized(): boolean

Returns

boolean

Inherited from

TransformNode.isSynchronized

Defined in

node_modules/@babylonjs/core/node.d.ts:256


isSynchronizedWithParent

isSynchronizedWithParent(): boolean

Returns

boolean

Inherited from

TransformNode.isSynchronizedWithParent

Defined in

node_modules/@babylonjs/core/node.d.ts:254


isUsingPivotMatrix

isUsingPivotMatrix(): boolean

return true if a pivot has been set

Returns

boolean

true if a pivot matrix is used

Inherited from

TransformNode.isUsingPivotMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:132


isUsingPostMultiplyPivotMatrix

isUsingPostMultiplyPivotMatrix(): boolean

Returns

boolean

true if pivot matrix must be cancelled in the world matrix. When this parameter is set to true (default), the inverse of the pivot matrix is also applied at the end to cancel the transformation effect.

Inherited from

TransformNode.isUsingPostMultiplyPivotMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:136


isWorldMatrixCameraDependent

isWorldMatrixCameraDependent(): boolean

Returns whether the transform node world matrix computation needs the camera information to be computed. This is the case when the node is a billboard or has an infinite distance for instance.

Returns

boolean

true if the world matrix computation needs the camera information to be computed

Inherited from

TransformNode.isWorldMatrixCameraDependent

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:449


locallyTranslate

locallyTranslate(vector3): TransformNode

Translates the mesh along the passed Vector3 in its local space.

Parameters

NameTypeDescription
vector3Vector3the distance to translate in localspace

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.locallyTranslate

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:269


lookAt

lookAt(targetPoint, yawCor?, pitchCor?, rollCor?, space?): TransformNode

Orients a mesh towards a target point. Mesh must be drawn facing user.

Parameters

NameTypeDescription
targetPointVector3the position (must be in same space as current mesh) to look at
yawCor?numberoptional yaw (y-axis) correction in radians
pitchCor?numberoptional pitch (x-axis) correction in radians
rollCor?numberoptional roll (z-axis) correction in radians
space?Spacethe chosen space of the target

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.lookAt

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:280


markAsDirty

markAsDirty(property?): Node

Flag the transform node as dirty (Forcing it to update everything)

Parameters

NameTypeDescription
property?stringif set to "rotation" the objects rotationQuaternion will be set to null

Returns

Node

this node

Inherited from

TransformNode.markAsDirty

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:340


normalizeToUnitCube

normalizeToUnitCube(includeDescendants?, ignoreRotation?, predicate?): TransformNode

Uniformly scales the mesh to fit inside of a unit cube (1 X 1 X 1 units)

Parameters

NameTypeDescription
includeDescendants?booleanUse the hierarchy's bounding box instead of the mesh's bounding box. Default is false
ignoreRotation?booleanignore rotation when computing the scale (ie. object will be axis aligned). Default is false
predicate?(node: AbstractMesh) => booleanpredicate that is passed in to getHierarchyBoundingVectors when selecting which object should be included when scaling

Returns

TransformNode

the current mesh

Inherited from

TransformNode.normalizeToUnitCube

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:530


registerAfterWorldMatrixUpdate

registerAfterWorldMatrixUpdate(func): TransformNode

If you'd like to be called back after the mesh position, rotation or scaling has been updated.

Parameters

NameTypeDescription
func(mesh: TransformNode) => voidcallback function to add

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.registerAfterWorldMatrixUpdate

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:469


removeBehavior

removeBehavior(behavior): Node

Remove an attached behavior

Parameters

NameTypeDescription
behaviorBehavior<Node>defines the behavior to attach

Returns

Node

the current Node

See

https://doc.babylonjs.com/features/featuresDeepDive/behaviors

Inherited from

TransformNode.removeBehavior

Defined in

node_modules/@babylonjs/core/node.d.ts:210


removeChild

removeChild(mesh, preserveScalingSign?): this

Removes the passed mesh from the current mesh children list

Parameters

NameTypeDescription
meshTransformNodedefines the child mesh
preserveScalingSign?booleanif true, keep scaling sign of child. Otherwise, scaling sign might change.

Returns

this

the current mesh

Inherited from

TransformNode.removeChild

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:367


resetLocalMatrix

resetLocalMatrix(independentOfChildren?): void

Resets this nodeTransform's local matrix to Matrix.Identity().

Parameters

NameTypeDescription
independentOfChildren?booleanindicates if all child nodeTransform's world-space transform should be preserved.

Returns

void

Inherited from

TransformNode.resetLocalMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:461


rotate

rotate(axis, amount, space?): TransformNode

Rotates the mesh around the axis vector for the passed angle (amount) expressed in radians, in the given space. space (default LOCAL) can be either Space.LOCAL, either Space.WORLD. Note that the property rotationQuaternion is then automatically updated and the property rotation is set to (0,0,0) and no longer used. The passed axis is also normalized.

Parameters

NameTypeDescription
axisVector3the axis to rotate around
amountnumberthe amount to rotate in radians
space?SpaceSpace to rotate in (Default: local)

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.rotate

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:401


rotateAround

rotateAround(point, axis, amount): TransformNode

Rotates the mesh around the axis vector for the passed angle (amount) expressed in radians, in world space. Note that the property rotationQuaternion is then automatically updated and the property rotation is set to (0,0,0) and no longer used. The passed axis is also normalized. . Method is based on http://www.euclideanspace.com/maths/geometry/affine/aroundPoint/index.htm

Parameters

NameTypeDescription
pointVector3the point to rotate around
axisVector3the axis to rotate around
amountnumberthe amount to rotate in radians

Returns

TransformNode

the TransformNode

Inherited from

TransformNode.rotateAround

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:412


serialize

serialize(currentSerializationObject?): any

Serializes the objects information.

Parameters

NameTypeDescription
currentSerializationObject?anydefines the object to serialize in

Returns

any

the serialized object

Inherited from

TransformNode.serialize

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:501


serializeAnimationRanges

serializeAnimationRanges(): any

Serialize animation ranges into a JSON compatible object

Returns

any

serialization object

Inherited from

TransformNode.serializeAnimationRanges

Defined in

node_modules/@babylonjs/core/node.d.ts:391


setAbsolutePosition

setAbsolutePosition(absolutePosition): TransformNode

Sets the mesh absolute position in the World from a Vector3 or an Array(3).

Parameters

NameTypeDescription
absolutePositionVector3the absolute position to set

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.setAbsolutePosition

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:252


setDirection

setDirection(localAxis, yawCor?, pitchCor?, rollCor?): TransformNode

Sets this transform node rotation to the given local axis.

Parameters

NameTypeDescription
localAxisVector3the axis in local space
yawCor?numberoptional yaw (y-axis) correction in radians
pitchCor?numberoptional pitch (x-axis) correction in radians
rollCor?numberoptional roll (z-axis) correction in radians

Returns

TransformNode

this TransformNode

Inherited from

TransformNode.setDirection

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:305


setEnabled

setEnabled(value): void

Set the enabled state of this node

Parameters

NameTypeDescription
valuebooleandefines the new enabled state

Returns

void

Inherited from

TransformNode.setEnabled

Defined in

node_modules/@babylonjs/core/node.d.ts:282


setParent

setParent(node, preserveScalingSign?, updatePivot?): TransformNode

Defines the passed node as the parent of the current node. The node will remain exactly where it is and its position / rotation will be updated accordingly. Note that if the mesh has a pivot matrix / point defined it will be applied after the parent was updated. In that case the node will not remain in the same space as it is, as the pivot will be applied. To avoid this, you can set updatePivot to true and the pivot will be updated to identity

Parameters

NameTypeDescription
nodeNodethe node ot set as the parent
preserveScalingSign?booleanif true, keep scaling sign of child. Otherwise, scaling sign might change.
updatePivot?booleanif true, update the pivot matrix to keep the node in the same space as before

Returns

TransformNode

this TransformNode.

See

https://doc.babylonjs.com/features/featuresDeepDive/mesh/transforms/parent_pivot/parent

Inherited from

TransformNode.setParent

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:353


setPivotMatrix

setPivotMatrix(matrix, postMultiplyPivotMatrix?): TransformNode

Sets a new pivot matrix to the current node

Parameters

NameTypeDescription
matrixDeepImmutableObject<Matrix>defines the new pivot matrix to use
postMultiplyPivotMatrix?booleandefines if the pivot matrix must be cancelled in the world matrix. When this parameter is set to true (default), the inverse of the pivot matrix is also applied at the end to cancel the transformation effect

Returns

TransformNode

the current TransformNode

Inherited from

TransformNode.setPivotMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:208


setPivotPoint

setPivotPoint(point, space?): TransformNode

Sets a new pivot point to the current node

Parameters

NameTypeDescription
pointVector3defines the new pivot point to use
space?Spacedefines if the point is in world or local space (local by default)

Returns

TransformNode

the current TransformNode

Inherited from

TransformNode.setPivotPoint

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:312


setPositionWithLocalVector

setPositionWithLocalVector(vector3): TransformNode

Sets the mesh position in its local space.

Parameters

NameTypeDescription
vector3Vector3the position to set in localspace

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.setPositionWithLocalVector

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:258


setPreTransformMatrix

setPreTransformMatrix(matrix): TransformNode

Sets a new matrix to apply before all other transformation

Parameters

NameTypeDescription
matrixMatrixdefines the transform matrix

Returns

TransformNode

the current TransformNode

Inherited from

TransformNode.setPreTransformMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:201


translate

translate(axis, distance, space?): TransformNode

Translates the mesh along the axis vector for the passed distance in the given space. space (default LOCAL) can be either Space.LOCAL, either Space.WORLD.

Parameters

NameTypeDescription
axisVector3the axis to translate in
distancenumberthe distance to translate
space?SpaceSpace to rotate in (Default: local)

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.translate

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:421


unfreezeWorldMatrix

unfreezeWorldMatrix(): this

Allows back the World matrix computation.

Returns

this

the TransformNode.

Inherited from

TransformNode.unfreezeWorldMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:237


unregisterAfterWorldMatrixUpdate

unregisterAfterWorldMatrixUpdate(func): TransformNode

Removes a registered callback function.

Parameters

NameTypeDescription
func(mesh: TransformNode) => voidcallback function to remove

Returns

TransformNode

the TransformNode.

Inherited from

TransformNode.unregisterAfterWorldMatrixUpdate

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:475


updateCache

updateCache(force?): void

Parameters

NameType
force?boolean

Returns

void

Inherited from

TransformNode.updateCache

Defined in

node_modules/@babylonjs/core/node.d.ts:240


updatePoseMatrix

updatePoseMatrix(matrix): TransformNode

Copies the parameter passed Matrix into the mesh Pose matrix.

Parameters

NameTypeDescription
matrixMatrixthe matrix to copy the pose from

Returns

TransformNode

this TransformNode.

Inherited from

TransformNode.updatePoseMatrix

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:171


AddNodeConstructor

AddNodeConstructor(type, constructorFunc): void

Add a new node constructor

Parameters

NameTypeDescription
typestringdefines the type name of the node to construct
constructorFuncNodeConstructordefines the constructor function

Returns

void

Inherited from

TransformNode.AddNodeConstructor

Defined in

node_modules/@babylonjs/core/node.d.ts:35


Construct

Construct(type, name, scene, options?): () => Node

Returns a node constructor based on type name

Parameters

NameTypeDescription
typestringdefines the type name
namestringdefines the new node name
sceneScenedefines the hosting scene
options?anydefines optional options to transmit to constructors

Returns

fn

the new constructor or null

▸ (): Node

Returns

Node

Inherited from

TransformNode.Construct

Defined in

node_modules/@babylonjs/core/node.d.ts:44


Parse

Parse(parsedTransformNode, scene, rootUrl): TransformNode

Returns a new TransformNode object parsed from the source provided.

Parameters

NameTypeDescription
parsedTransformNodeanyis the source.
sceneScenethe scene the object belongs to
rootUrlstringis a string, it's the root URL to prefix the delayLoadingFile property with

Returns

TransformNode

a new TransformNode object parsed from the source provided.

Inherited from

TransformNode.Parse

Defined in

node_modules/@babylonjs/core/Meshes/transformNode.d.ts:509


ParseAnimationRanges

ParseAnimationRanges(node, parsedNode, _scene): void

Parse animation range data from a serialization object and store them into a given node

Parameters

NameTypeDescription
nodeNodedefines where to store the animation ranges
parsedNodeanydefines the serialization object to read data from
_sceneScenedefines the hosting scene

Returns

void

Inherited from

TransformNode.ParseAnimationRanges

Defined in

node_modules/@babylonjs/core/node.d.ts:410