Skip to content

Documentation / scene / Mesh

Class: Mesh ​

Defined in: libs/scene/src/scene/mesh.ts:138

Mesh node

Extends ​

  • MeshBase

Implements ​

Constructors ​

Constructor ​

new Mesh(scene, primitive?, material?): Mesh

Defined in: libs/scene/src/scene/mesh.ts:197

Creates an instance of mesh node

Parameters ​

scene ​

Scene

The scene to which the mesh node belongs

primitive? ​

Primitive

material? ​

MeshMaterial

Returns ​

Mesh

Overrides ​

MeshBase.constructor

Properties ​

[EventMapType]? ​

readonly optional [EventMapType]?: object & object

Defined in: libs/base/dist/index.d.ts:585

Type-only event map marker.

Type Declaration ​

primitive_changed ​

primitive_changed: [Primitive]

material_changed ​

material_changed: [MeshMaterial]

Type Declaration ​

dispose ​

dispose: []

Inherited from ​

MeshBase.[EventMapType]


objectColor ​

readonly objectColor: Vector4

Defined in: libs/scene/src/render/drawable_mixin.ts:13

Inherited from ​

MeshBase.objectColor


BBOXDRAW_INHERITED ​

readonly static BBOXDRAW_INHERITED: -1 = -1

Defined in: libs/scene/src/scene/scene_node.ts:168

Bounding-box draw mode inherited from nearest graph ancestor.

Inherited from ​

MeshBase.BBOXDRAW_INHERITED


BBOXDRAW_DISABLED ​

readonly static BBOXDRAW_DISABLED: 0 = 0

Defined in: libs/scene/src/scene/scene_node.ts:170

Disable bounding-box visualization.

Inherited from ​

MeshBase.BBOXDRAW_DISABLED


BBOXDRAW_LOCAL ​

readonly static BBOXDRAW_LOCAL: 1 = 1

Defined in: libs/scene/src/scene/scene_node.ts:172

Draw local-space bounding box.

Inherited from ​

MeshBase.BBOXDRAW_LOCAL


BBOXDRAW_WORLD ​

readonly static BBOXDRAW_WORLD: 2 = 2

Defined in: libs/scene/src/scene/scene_node.ts:174

Draw world-space bounding box.

Inherited from ​

MeshBase.BBOXDRAW_WORLD

Accessors ​

disposed ​

Get Signature ​

get disposed(): boolean

Defined in: libs/base/dist/index.d.ts:6107

Returns ​

boolean

Inherited from ​

MeshBase.disposed


useRenderBundle ​

Get Signature ​

get useRenderBundle(): boolean

Defined in: libs/scene/src/scene/mesh.ts:250

Returns ​

boolean

Set Signature ​

set useRenderBundle(val): void

Defined in: libs/scene/src/scene/mesh.ts:253

Parameters ​
val ​

boolean

Returns ​

void


skeletonName ​

Get Signature ​

get skeletonName(): string

Defined in: libs/scene/src/scene/mesh.ts:256

Returns ​

string

Set Signature ​

set skeletonName(name): void

Defined in: libs/scene/src/scene/mesh.ts:259

Parameters ​
name ​

string

Returns ​

void


skinBindingName ​

Get Signature ​

get skinBindingName(): string

Defined in: libs/scene/src/scene/mesh.ts:262

Returns ​

string

Set Signature ​

set skinBindingName(name): void

Defined in: libs/scene/src/scene/mesh.ts:265

Parameters ​
name ​

string

Returns ​

void


castShadow ​

Get Signature ​

get castShadow(): boolean

Defined in: libs/scene/src/scene/mesh.ts:287

Wether the mesh node casts shadows

Returns ​

boolean

Set Signature ​

set castShadow(b): void

Defined in: libs/scene/src/scene/mesh.ts:290

Parameters ​
b ​

boolean

Returns ​

void


primitive ​

Get Signature ​

get primitive(): Primitive

Defined in: libs/scene/src/scene/mesh.ts:294

Primitive of the mesh

Returns ​

Primitive

Set Signature ​

set primitive(prim): void

Defined in: libs/scene/src/scene/mesh.ts:297

Parameters ​
prim ​

Primitive

Returns ​

void


material ​

Get Signature ​

get material(): MeshMaterial

Defined in: libs/scene/src/scene/mesh.ts:324

Material of the mesh

Returns ​

MeshMaterial

Set Signature ​

set material(m): void

Defined in: libs/scene/src/scene/mesh.ts:327

Parameters ​
m ​

MeshMaterial

Returns ​

void


placeToOctree ​

Get Signature ​

get placeToOctree(): boolean

Defined in: libs/scene/src/scene/scene_node.ts:317

Whether the node should be inserted into the scene's spatial structure.

Remarks ​

Toggling this hints the scene to (re)place the node in octree/acceleration structures.

Returns ​

boolean

Set Signature ​

set placeToOctree(val): void

Defined in: libs/scene/src/scene/scene_node.ts:320

Parameters ​
val ​

boolean

Returns ​

void

Inherited from ​

MeshBase.placeToOctree


runtimeId ​

Get Signature ​

get runtimeId(): number

Defined in: libs/scene/src/scene/scene_node.ts:331

Node's runtime unique identifier

Returns ​

number

Inherited from ​

MeshBase.runtimeId


persistentId ​

Get Signature ​

get persistentId(): string

Defined in: libs/scene/src/scene/scene_node.ts:340

Node's persistent identifier.

Remarks ​

Changing this affects serialization and registry lookup; ensure uniqueness.

Returns ​

string

Set Signature ​

set persistentId(id): void

Defined in: libs/scene/src/scene/scene_node.ts:343

Parameters ​
id ​

string

Returns ​

void

Inherited from ​

MeshBase.persistentId


prefabId ​

Get Signature ​

get prefabId(): string

Defined in: libs/scene/src/scene/scene_node.ts:352

If not empty, this node was loaded from a prefab

Remarks ​

Internal used for serialization

Returns ​

string

Set Signature ​

set prefabId(id): void

Defined in: libs/scene/src/scene/scene_node.ts:355

Parameters ​
id ​

string

Returns ​

void

Inherited from ​

MeshBase.prefabId


jointTypeT ​

Get Signature ​

get jointTypeT(): "none" | "animated" | "static"

Defined in: libs/scene/src/scene/scene_node.ts:371

Translation type if this is a joint node of any skeleton

Remarks ​

Internal used for serialization

Returns ​

"none" | "animated" | "static"

Set Signature ​

set jointTypeT(val): void

Defined in: libs/scene/src/scene/scene_node.ts:374

Parameters ​
val ​

"none" | "animated" | "static"

Returns ​

void

Inherited from ​

MeshBase.jointTypeT


jointTypeS ​

Get Signature ​

get jointTypeS(): "none" | "animated" | "static"

Defined in: libs/scene/src/scene/scene_node.ts:383

Scale type if this is a joint node of any skeleton

Remarks ​

Internal used for serialization

Returns ​

"none" | "animated" | "static"

Set Signature ​

set jointTypeS(val): void

Defined in: libs/scene/src/scene/scene_node.ts:386

Parameters ​
val ​

"none" | "animated" | "static"

Returns ​

void

Inherited from ​

MeshBase.jointTypeS


jointTypeR ​

Get Signature ​

get jointTypeR(): "none" | "animated" | "static"

Defined in: libs/scene/src/scene/scene_node.ts:395

Rotation type if this is a joint node of any skeleton

Remarks ​

Internal used for serialization

Returns ​

"none" | "animated" | "static"

Set Signature ​

set jointTypeR(val): void

Defined in: libs/scene/src/scene/scene_node.ts:398

Parameters ​
val ​

"none" | "animated" | "static"

Returns ​

void

Inherited from ​

MeshBase.jointTypeR


metaData ​

Get Signature ​

get metaData(): Metadata

Defined in: libs/scene/src/scene/scene_node.ts:407

Arbitrary metadata associated with this node.

Remarks ​

Stored and transported with the node; format is application-defined.

Returns ​

Metadata

Set Signature ​

set metaData(val): void

Defined in: libs/scene/src/scene/scene_node.ts:410

Parameters ​
val ​

Metadata

Returns ​

void

Inherited from ​

MeshBase.metaData


script ​

Get Signature ​

get script(): string

Defined in: libs/scene/src/scene/scene_node.ts:419

Attached script filename or identifier (engine-specific).

Remarks ​

Integrates with the engine’s scripting system if available.

Returns ​

string

Set Signature ​

set script(fileName): void

Defined in: libs/scene/src/scene/scene_node.ts:422

Parameters ​
fileName ​

string

Returns ​

void

Inherited from ​

MeshBase.script


scriptConfig ​

Get Signature ​

get scriptConfig(): object | unknown[]

Defined in: libs/scene/src/scene/scene_node.ts:435

Script component configuration payload used by editor/runtime script components.

Returns ​

object | unknown[]

Set Signature ​

set scriptConfig(value): void

Defined in: libs/scene/src/scene/scene_node.ts:438

Parameters ​
value ​

object | unknown[]

Returns ​

void

Inherited from ​

MeshBase.scriptConfig


scripts ​

Get Signature ​

get scripts(): ScriptAttachment[]

Defined in: libs/scene/src/scene/scene_node.ts:452

All script attachments on this node.

Returns ​

ScriptAttachment[]

Set Signature ​

set scripts(value): void

Defined in: libs/scene/src/scene/scene_node.ts:455

Parameters ​
value ​

ScriptAttachment[]

Returns ​

void

Inherited from ​

MeshBase.scripts


scriptConfigs ​

Get Signature ​

get scriptConfigs(): unknown[]

Defined in: libs/scene/src/scene/scene_node.ts:461

Script configs for all script attachments.

Returns ​

unknown[]

Set Signature ​

set scriptConfigs(value): void

Defined in: libs/scene/src/scene/scene_node.ts:464

Parameters ​
value ​

unknown[]

Returns ​

void

Inherited from ​

MeshBase.scriptConfigs


gpuClothComponents ​

Get Signature ​

get gpuClothComponents(): GPUClothComponent[]

Defined in: libs/scene/src/scene/scene_node.ts:477

GPU cloth simulations owned by this node.

Returns ​

GPUClothComponent[]

Set Signature ​

set gpuClothComponents(value): void

Defined in: libs/scene/src/scene/scene_node.ts:480

Parameters ​
value ​

GPUClothComponent[]

Returns ​

void

Inherited from ​

MeshBase.gpuClothComponents


name ​

Get Signature ​

get name(): string

Defined in: libs/scene/src/scene/scene_node.ts:516

Display name of the node (for UI/debugging).

Returns ​

string

Set Signature ​

set name(val): void

Defined in: libs/scene/src/scene/scene_node.ts:519

Parameters ​
val ​

string

Returns ​

void

Inherited from ​

MeshBase.name


scene ​

Get Signature ​

get scene(): Scene

Defined in: libs/scene/src/scene/scene_node.ts:523

The owning scene.

Returns ​

Scene

Inherited from ​

MeshBase.scene


attached ​

Get Signature ​

get attached(): boolean

Defined in: libs/scene/src/scene/scene_node.ts:529

Whether this node is currently attached under the scene's root.

Returns ​

boolean

Inherited from ​

MeshBase.attached


sealed ​

Get Signature ​

get sealed(): boolean

Defined in: libs/scene/src/scene/scene_node.ts:543

If true, the node is logically sealed; some operations (like cloning as child) may be restricted by engine policies.

Returns ​

boolean

Set Signature ​

set sealed(val): void

Defined in: libs/scene/src/scene/scene_node.ts:546

Parameters ​
val ​

boolean

Returns ​

void

Inherited from ​

MeshBase.sealed


animationSet ​

Get Signature ​

get animationSet(): AnimationSet

Defined in: libs/scene/src/scene/scene_node.ts:555

Lazily created animation set for this node.

Remarks ​

Accessing this schedules the node for update in the scene.

Returns ​

AnimationSet

Inherited from ​

MeshBase.animationSet


sharedModel ​

Get Signature ​

get sharedModel(): SharedModel

Defined in: libs/scene/src/scene/scene_node.ts:565

Shared model reference for instancing/streaming systems.

Returns ​

SharedModel

Set Signature ​

set sharedModel(model): void

Defined in: libs/scene/src/scene/scene_node.ts:568

Parameters ​
model ​

SharedModel

Returns ​

void

Inherited from ​

MeshBase.sharedModel


morphTargetGroups ​

Get Signature ​

get morphTargetGroups(): SceneMorphTargetGroup[]

Defined in: libs/scene/src/scene/scene_node.ts:572

Runtime morph target groups bound to this model instance.

Returns ​

SceneMorphTargetGroup[]

Set Signature ​

set morphTargetGroups(groups): void

Defined in: libs/scene/src/scene/scene_node.ts:575

Parameters ​
groups ​

SceneMorphTargetGroup[]

Returns ​

void

Inherited from ​

MeshBase.morphTargetGroups


clipTestEnabled ​

Get Signature ​

get clipTestEnabled(): boolean

Defined in: libs/scene/src/scene/scene_node.ts:820

Clip mode

Returns ​

boolean

Set Signature ​

set clipTestEnabled(val): void

Defined in: libs/scene/src/scene/scene_node.ts:823

Parameters ​
val ​

boolean

Returns ​

void

Inherited from ​

MeshBase.clipTestEnabled


hidden ​

Get Signature ​

get hidden(): boolean

Defined in: libs/scene/src/scene/scene_node.ts:827

Computed value of show state

Returns ​

boolean

Inherited from ​

MeshBase.hidden


showState ​

Get Signature ​

get showState(): SceneNodeVisible

Defined in: libs/scene/src/scene/scene_node.ts:835

Show state

Returns ​

SceneNodeVisible

Set Signature ​

set showState(val): void

Defined in: libs/scene/src/scene/scene_node.ts:838

Parameters ​
val ​

SceneNodeVisible

Returns ​

void

Inherited from ​

MeshBase.showState


pickable ​

Get Signature ​

get pickable(): boolean

Defined in: libs/scene/src/scene/scene_node.ts:856

Whether this node is enabled for CPU picking

Returns ​

boolean

Set Signature ​

set pickable(val): void

Defined in: libs/scene/src/scene/scene_node.ts:859

Parameters ​
val ​

boolean

Returns ​

void

Inherited from ​

MeshBase.pickable


gpuPickable ​

Get Signature ​

get gpuPickable(): boolean

Defined in: libs/scene/src/scene/scene_node.ts:863

Whether this node is enabled for GPU picking

Returns ​

boolean

Set Signature ​

set gpuPickable(val): void

Defined in: libs/scene/src/scene/scene_node.ts:866

Parameters ​
val ​

boolean

Returns ​

void

Inherited from ​

MeshBase.gpuPickable


computedBoundingBoxDrawMode ​

Get Signature ​

get computedBoundingBoxDrawMode(): number

Defined in: libs/scene/src/scene/scene_node.ts:948

Computed value for bounding box draw mode

Returns ​

number

Inherited from ​

MeshBase.computedBoundingBoxDrawMode


boundingBoxDrawMode ​

Get Signature ​

get boundingBoxDrawMode(): number

Defined in: libs/scene/src/scene/scene_node.ts:959

Bounding box draw mode

Returns ​

number

Set Signature ​

set boundingBoxDrawMode(mode): void

Defined in: libs/scene/src/scene/scene_node.ts:962

Parameters ​
mode ​

number

Returns ​

void

Inherited from ​

MeshBase.boundingBoxDrawMode


parent ​

Get Signature ​

get parent(): SceneNode

Defined in: libs/scene/src/scene/scene_node.ts:1262

Parent of the xform

Returns ​

SceneNode

Set Signature ​

set parent(p): void

Defined in: libs/scene/src/scene/scene_node.ts:1265

Parameters ​
p ​

SceneNode

Returns ​

void

Inherited from ​

MeshBase.parent


children ​

Get Signature ​

get children(): SceneNode[]

Defined in: libs/scene/src/scene/scene_node.ts:1271

Children of this xform

Returns ​

SceneNode[]

Inherited from ​

MeshBase.children


position ​

Get Signature ​

get position(): Vector3

Defined in: libs/scene/src/scene/scene_node.ts:1277

Position of the xform relative to it's parent

Returns ​

Vector3

Set Signature ​

set position(val): void

Defined in: libs/scene/src/scene/scene_node.ts:1280

Parameters ​
val ​

Vector3

Returns ​

void

Inherited from ​

MeshBase.position


scale ​

Get Signature ​

get scale(): Vector3

Defined in: libs/scene/src/scene/scene_node.ts:1286

Scaling of the xform

Returns ​

Vector3

Set Signature ​

set scale(val): void

Defined in: libs/scene/src/scene/scene_node.ts:1289

Parameters ​
val ​

Vector3

Returns ​

void

Inherited from ​

MeshBase.scale


rotation ​

Get Signature ​

get rotation(): Quaternion

Defined in: libs/scene/src/scene/scene_node.ts:1295

Rotation of the xform

Returns ​

Quaternion

Set Signature ​

set rotation(val): void

Defined in: libs/scene/src/scene/scene_node.ts:1298

Parameters ​
val ​

Quaternion

Returns ​

void

Inherited from ​

MeshBase.rotation


localMatrix ​

Get Signature ​

get localMatrix(): Immutable<Matrix4x4>

Defined in: libs/scene/src/scene/scene_node.ts:1404

Local transformation matrix of the xform

Returns ​

Immutable<Matrix4x4>

Set Signature ​

set localMatrix(matrix): void

Defined in: libs/scene/src/scene/scene_node.ts:1411

Parameters ​
matrix ​

Immutable<Matrix4x4>

Returns ​

void

Inherited from ​

MeshBase.localMatrix


worldMatrix ​

Get Signature ​

get worldMatrix(): Immutable<Matrix4x4>

Defined in: libs/scene/src/scene/scene_node.ts:1415

World transformation matrix of the xform

Returns ​

Immutable<Matrix4x4>

Inherited from ​

MeshBase.worldMatrix


worldMatrixDet ​

Get Signature ​

get worldMatrixDet(): number

Defined in: libs/scene/src/scene/scene_node.ts:1420

The determinant of world matrix

Returns ​

number

Inherited from ​

MeshBase.worldMatrixDet


invWorldMatrix ​

Get Signature ​

get invWorldMatrix(): Immutable<Matrix4x4>

Defined in: libs/scene/src/scene/scene_node.ts:1425

Inverse of the world transformation matrix of the xform

Returns ​

Immutable<Matrix4x4>

Inherited from ​

MeshBase.invWorldMatrix

Methods ​

isPrototypeOf() ​

static isPrototypeOf(v): boolean

Defined in: libs/base/dist/index.d.ts:80

Parameters ​

v ​

object

Returns ​

boolean

Inherited from ​

MeshBase.isPrototypeOf


on() ​

Call Signature ​

on<K>(type, listener, context?): void

Defined in: libs/base/dist/index.d.ts:671

IEventTarget.on

Type Parameters ​
K ​

K extends "dispose" | "nodeattached" | "noderemoved" | "visiblechanged" | "transformchanged" | "bvchanged"

Parameters ​
type ​

K

listener ​

EventListener<object & object, K>

context? ​

unknown

Returns ​

void

Inherited from ​

MeshBase.on

Call Signature ​

on<K>(type, listener, context?): void

Defined in: libs/base/dist/index.d.ts:630

IEventTarget.on

Type Parameters ​
K ​

K extends "dispose"

Parameters ​
type ​

K

listener ​

EventListener<{ dispose: []; }, K>

context? ​

unknown

Returns ​

void

Inherited from ​

MeshBase.on

Call Signature ​

on<K>(type, listener, context?): void

Defined in: libs/base/dist/index.d.ts:592

Sets up a function that will be called whenever the specified event is delivered to the target

Type Parameters ​
K ​

K extends "dispose" | "primitive_changed" | "material_changed"

Parameters ​
type ​

K

The event type to listen for

listener ​

EventListener<object & object, K>

The callback function

context? ​

unknown

Context object of the listener function

Returns ​

void

Inherited from ​

MeshBase.on


once() ​

Call Signature ​

once<K>(type, listener, context?): void

Defined in: libs/base/dist/index.d.ts:675

IEventTarget.once

Type Parameters ​
K ​

K extends "dispose" | "nodeattached" | "noderemoved" | "visiblechanged" | "transformchanged" | "bvchanged"

Parameters ​
type ​

K

listener ​

EventListener<object & object, K>

context? ​

unknown

Returns ​

void

Inherited from ​

MeshBase.once

Call Signature ​

once<K>(type, listener, context?): void

Defined in: libs/base/dist/index.d.ts:634

IEventTarget.once

Type Parameters ​
K ​

K extends "dispose"

Parameters ​
type ​

K

listener ​

EventListener<{ dispose: []; }, K>

context? ​

unknown

Returns ​

void

Inherited from ​

MeshBase.once

Call Signature ​

once<K>(type, listener, context?): void

Defined in: libs/base/dist/index.d.ts:599

Sets up a function that will be called only once when the specified event is delivered to the target

Type Parameters ​
K ​

K extends "dispose" | "primitive_changed" | "material_changed"

Parameters ​
type ​

K

The event type to listen for

listener ​

EventListener<object & object, K>

The callback function

context? ​

unknown

Context object of the listener function

Returns ​

void

Inherited from ​

MeshBase.once


off() ​

Call Signature ​

off<K>(type, listener, context?): void

Defined in: libs/base/dist/index.d.ts:679

IEventTarget.off

Type Parameters ​
K ​

K extends "dispose" | "nodeattached" | "noderemoved" | "visiblechanged" | "transformchanged" | "bvchanged"

Parameters ​
type ​

K

listener ​

EventListener<object & object, K>

context? ​

unknown

Returns ​

void

Inherited from ​

MeshBase.off

Call Signature ​

off<K>(type, listener?, context?): void

Defined in: libs/base/dist/index.d.ts:638

IEventTarget.off

Type Parameters ​
K ​

K extends "dispose"

Parameters ​
type ​

K

listener? ​

EventListener<{ dispose: []; }>

context? ​

unknown

Returns ​

void

Inherited from ​

MeshBase.off

Call Signature ​

off<K>(type, listener?, context?): void

Defined in: libs/base/dist/index.d.ts:605

Removes an event listener function previously registered.

Type Parameters ​
K ​

K extends "dispose" | "primitive_changed" | "material_changed"

Parameters ​
type ​

K

The event type for which to remove an event listener

listener? ​

EventListener<object & object>

The callback function to be removed

context? ​

unknown

Returns ​

void

Inherited from ​

MeshBase.off


dispatchEvent() ​

Call Signature ​

dispatchEvent<K>(type, ...args): void

Defined in: libs/base/dist/index.d.ts:683

IEventTarget.dispatchEvent

Type Parameters ​
K ​

K extends "dispose" | "nodeattached" | "noderemoved" | "visiblechanged" | "transformchanged" | "bvchanged"

Parameters ​
type ​

K

args ​

...object & object[K]

Returns ​

void

Inherited from ​

MeshBase.dispatchEvent

Call Signature ​

dispatchEvent<K>(type, ...args): void

Defined in: libs/base/dist/index.d.ts:642

IEventTarget.dispatchEvent

Type Parameters ​
K ​

K extends "dispose"

Parameters ​
type ​

K

args ​

...object[K]

Returns ​

void

Inherited from ​

MeshBase.dispatchEvent

Call Signature ​

dispatchEvent<K>(type, ...args): void

Defined in: libs/base/dist/index.d.ts:611

Synchronously invoke the affected event listeners with an event object

Type Parameters ​
K ​

K extends "dispose" | "primitive_changed" | "material_changed"

Parameters ​
type ​

K

args ​

...object & object[K]

Returns ​

void

false if the event was canceled, otherwise true

Inherited from ​

MeshBase.dispatchEvent


dispose() ​

dispose(): void

Defined in: libs/base/dist/index.d.ts:6108

Releases all GPU resources and detaches from the renderer.

Returns ​

void

Implementation of ​

BatchDrawable.dispose

Inherited from ​

MeshBase.dispose


getDrawableId() ​

getDrawableId(): number

Defined in: libs/scene/src/render/drawable_mixin.ts:14

Unique, stable identifier for the drawable, used in caches and picking.

Returns ​

number

Implementation of ​

BatchDrawable.getDrawableId

Inherited from ​

MeshBase.getDrawableId


pushRenderQueueRef() ​

pushRenderQueueRef(ref): void

Defined in: libs/scene/src/render/drawable_mixin.ts:15

Pushes a reference to the current render queue for cleanup or back-references.

Useful for batching or delayed state application.

Parameters ​

ref ​

RenderQueueRef

Returns ​

void

Implementation of ​

BatchDrawable.pushRenderQueueRef

Inherited from ​

MeshBase.pushRenderQueueRef


applyInstanceOffsetAndStride() ​

applyInstanceOffsetAndStride(renderQueue, stride, offset): void

Defined in: libs/scene/src/render/drawable_mixin.ts:16

Parameters ​

renderQueue ​

RenderQueue

stride ​

number

offset ​

number

Returns ​

void

Implementation of ​

BatchDrawable.applyInstanceOffsetAndStride

Inherited from ​

MeshBase.applyInstanceOffsetAndStride


applyTransformUniforms() ​

applyTransformUniforms(renderQueue): void

Defined in: libs/scene/src/render/drawable_mixin.ts:17

Applies transform-related uniforms to the active bind group or pipeline.

Parameters ​

renderQueue ​

RenderQueue

The current render queue issuing this draw.

Returns ​

void

Implementation of ​

BatchDrawable.applyTransformUniforms

Inherited from ​

MeshBase.applyTransformUniforms


applyMaterialUniforms() ​

applyMaterialUniforms(instanceInfo): void

Defined in: libs/scene/src/render/drawable_mixin.ts:18

Parameters ​

instanceInfo ​

DrawableInstanceInfo

Returns ​

void

Implementation of ​

BatchDrawable.applyMaterialUniforms

Inherited from ​

MeshBase.applyMaterialUniforms


applyMaterialUniformsAll() ​

applyMaterialUniformsAll(): void

Defined in: libs/scene/src/render/drawable_mixin.ts:19

Returns ​

void

Implementation of ​

BatchDrawable.applyMaterialUniformsAll

Inherited from ​

MeshBase.applyMaterialUniformsAll


getObjectColor() ​

getObjectColor(): Vector4

Defined in: libs/scene/src/render/drawable_mixin.ts:20

Returns the unique color used for GPU picking (object ID in color).

Returns ​

Vector4

Implementation of ​

BatchDrawable.getObjectColor

Inherited from ​

MeshBase.getObjectColor


updateState() ​

updateState(): void

Defined in: libs/scene/src/render/drawable_mixin.ts:21

Updates internal state or GPU resources for this drawable, if needed.

Returns ​

void

Implementation of ​

BatchDrawable.updateState

Inherited from ​

MeshBase.updateState


bind() ​

bind(ctx, renderQueue): void

Defined in: libs/scene/src/render/drawable_mixin.ts:22

Parameters ​

ctx ​

DrawContext

renderQueue ​

RenderQueue

Returns ​

void

Inherited from ​

MeshBase.bind


getName() ​

getName(): string

Defined in: libs/scene/src/scene/graph_node.ts:36

Gets the name

Returns ​

string

Implementation of ​

BatchDrawable.getName

Inherited from ​

MeshBase.getName


isGraphNode() ​

isGraphNode(): this is GraphNode

Defined in: libs/scene/src/scene/graph_node.ts:43

Type guard: true if this node is a graph node.

Returns ​

this is GraphNode

Inherited from ​

MeshBase.isGraphNode


getSortDistance() ​

getSortDistance(camera): number

Defined in: libs/scene/src/scene/graph_node.ts:61

Computes the distance used for sorting (e.g., transparent draw order).

Parameters ​

camera ​

Camera

Camera from which to compute distance (usually camera -> object).

Returns ​

number

Implementation of ​

BatchDrawable.getSortDistance

Inherited from ​

MeshBase.getSortDistance


getInstanceId() ​

getInstanceId(_renderPass): string

Defined in: libs/scene/src/scene/mesh.ts:232

Returns the batch instance ID for the current render pass.

Parameters ​

_renderPass ​

RenderPass

Returns ​

string

Implementation of ​

BatchDrawable.getInstanceId


getInstanceUniforms() ​

getInstanceUniforms(): Float32Array<ArrayBuffer>

Defined in: libs/scene/src/scene/mesh.ts:238

Returns the packed instance-uniform buffer used for batching.

Returns ​

Float32Array<ArrayBuffer>

Implementation of ​

BatchDrawable.getInstanceUniforms


getPickTarget() ​

getPickTarget(): PickTarget

Defined in: libs/scene/src/scene/mesh.ts:244

Returns the pick target override to be reported when this object is picked.

If not set, a default target derived from the node/material may be used.

Returns ​

PickTarget

Implementation of ​

BatchDrawable.getPickTarget


setPickTarget() ​

setPickTarget(node, label?): void

Defined in: libs/scene/src/scene/mesh.ts:247

Parameters ​

node ​

SceneNode

label? ​

string

Returns ​

void


isMesh() ​

isMesh(): this is Mesh

Defined in: libs/scene/src/scene/mesh.ts:345

Type guard: true if this node is a mesh.

Returns ​

this is Mesh

Overrides ​

MeshBase.isMesh


setAnimatedBoundingBox() ​

setAnimatedBoundingBox(bbox): void

Defined in: libs/scene/src/scene/mesh.ts:352

Sets the bounding box for animation

Parameters ​

bbox ​

BoundingBox

The bounding box for animation

Returns ​

void


getAnimatedBoundingBox() ​

getAnimatedBoundingBox(): BoundingBox

Defined in: libs/scene/src/scene/mesh.ts:359

Gets the bounding box for animation

Returns ​

BoundingBox


setMorphBoundingInfo() ​

setMorphBoundingInfo(info): void

Defined in: libs/scene/src/scene/mesh.ts:366

Sets morph target bounding data used to update the animated bounding box when weights change.

Parameters ​

info ​

MorphBoundingInfo

Morph target bounding data

Returns ​

void


getMorphBoundingInfo() ​

getMorphBoundingInfo(): MorphBoundingInfo

Defined in: libs/scene/src/scene/mesh.ts:378

Gets morph target bounding data.

Returns ​

MorphBoundingInfo


setBoneMatrices() ​

setBoneMatrices(matrices): void

Defined in: libs/scene/src/scene/mesh.ts:385

Sets the texture that contains the bone matrices for skeletal animation

Parameters ​

matrices ​

Texture2D<unknown>

The texture that contains the bone matrices

Returns ​

void


setSkinInfluenceData() ​

setSkinInfluenceData(data): void

Defined in: libs/scene/src/scene/mesh.ts:397

Sets additional per-vertex skinning influences packed in a texture. The first 4 influences remain in the vertex attributes; this payload stores the remainder.

Parameters ​

data ​

SkinInfluenceData

Extra influence texture payload, or null to clear it

Returns ​

void


setMorphData() ​

setMorphData(data): void

Defined in: libs/scene/src/scene/mesh.ts:446

Sets the texture that contains the morph target data

Parameters ​

data ​

MorphData

The texture that contains the morph target data

Returns ​

void


setSkinnedBoundingInfo() ​

setSkinnedBoundingInfo(info): void

Defined in: libs/scene/src/scene/mesh.ts:493

Sets the skinned bounding info

Parameters ​

info ​

SkinnedBoundingBox

The skinned bounding info

Returns ​

void


getMorphData() ​

getMorphData(): MorphData

Defined in: libs/scene/src/scene/mesh.ts:499

Returns the morph target data texture (if morphing is used).

Returns ​

MorphData

Implementation of ​

BatchDrawable.getMorphData


getSkinInfluenceData() ​

getSkinInfluenceData(): SkinInfluenceData

Defined in: libs/scene/src/scene/mesh.ts:505

Returns additional per-vertex skinning influences packed in a texture, if needed.

Returns ​

SkinInfluenceData

Implementation of ​

BatchDrawable.getSkinInfluenceData


getMorphSource() ​

getMorphSource(): MorphSourceDescriptor

Defined in: libs/scene/src/scene/mesh.ts:511

Gets the external morph source descriptor.

Returns ​

MorphSourceDescriptor


setMorphSource() ​

setMorphSource(source): void

Defined in: libs/scene/src/scene/mesh.ts:518

Sets the external morph source descriptor.

Parameters ​

source ​

MorphSourceDescriptor

The morph source descriptor

Returns ​

void


getMorphSourceData() ​

getMorphSourceData(): MorphTargetSourceData

Defined in: libs/scene/src/scene/mesh.ts:524

Gets the CPU-side morph source data.

Returns ​

MorphTargetSourceData


setMorphSourceData() ​

setMorphSourceData(data): void

Defined in: libs/scene/src/scene/mesh.ts:530

Sets the CPU-side morph source data used to rebuild GPU morph textures on demand.

Parameters ​

data ​

MorphTargetSourceData

Returns ​

void


setMorphInfo() ​

setMorphInfo(info): void

Defined in: libs/scene/src/scene/mesh.ts:549

Sets the buffer that contains the morph target information

Parameters ​

info ​

MorphInfo

The buffer that contains the morph target information

Returns ​

void


getMorphInfo() ​

getMorphInfo(): MorphInfo

Defined in: libs/scene/src/scene/mesh.ts:597

Returns the morph information buffer (weights, ranges, etc.).

Returns ​

MorphInfo

Implementation of ​

BatchDrawable.getMorphInfo


getNumMorphTargets() ​

getNumMorphTargets(): number

Defined in: libs/scene/src/scene/mesh.ts:845

Get the number of morph targets

Returns ​

number

The number of morph targets


getMorphTargetName() ​

getMorphTargetName(index): string

Defined in: libs/scene/src/scene/mesh.ts:854

Get the name of the morph target by index

Parameters ​

index ​

number

The index of the morph target

Returns ​

string

The name of the morph target, or null if not found


getMorphTargetIndexByName() ​

getMorphTargetIndexByName(name): number

Defined in: libs/scene/src/scene/mesh.ts:866

Get the index of the morph target by name

Parameters ​

name ​

string

The name of the morph target

Returns ​

number

The index of the morph target, or -1 if not found


setMorphWeight() ​

setMorphWeight(name, weight): void

Defined in: libs/scene/src/scene/mesh.ts:875

Update morph target weight

Parameters ​

name ​

string

The name of the morph target

weight ​

number

The weight of the morph target

Returns ​

void


setMorphWeightByIndex() ​

setMorphWeightByIndex(index, weight): void

Defined in: libs/scene/src/scene/mesh.ts:887

Update morph target weight by index

Parameters ​

index ​

number

The index of the morph target

weight ​

number

The weight of the morph target

Returns ​

void


getMorphWeight() ​

getMorphWeight(name): number

Defined in: libs/scene/src/scene/mesh.ts:906

Get morph target weight

Parameters ​

name ​

string

The name of the morph target

Returns ​

number

The weight of the morph target, or 0 if not found


updateMorphWeights() ​

updateMorphWeights(weight): void

Defined in: libs/scene/src/scene/mesh.ts:918

Update morph target weights

Parameters ​

weight ​

ArrayLike<number>

The morph target weights. The length must not exceed the mesh's morph target count.

Returns ​

void


update() ​

update(frameId, elapsedInSeconds, deltaInSeconds): void

Defined in: libs/scene/src/scene/mesh.ts:937

Update node state once per-frame

Parameters ​

frameId ​

number

Current frame id

elapsedInSeconds ​

number

Elapsed time from game start in seconds

deltaInSeconds ​

number

Elapsed time since previous frame in seconds

Returns ​

void

Overrides ​

MeshBase.update


isBatchable() ​

isBatchable(): this is BatchDrawable

Defined in: libs/scene/src/scene/mesh.ts:962

Returns true if the object supports instanced rendering.

When true, the object should also implement the BatchDrawable methods.

Returns ​

this is BatchDrawable

Implementation of ​

BatchDrawable.isBatchable

Overrides ​

MeshBase.isBatchable


getQueueType() ​

getQueueType(): number

Defined in: libs/scene/src/scene/mesh.ts:973

Returns the type/category of render queue this object belongs to.

Returns ​

number

Implementation of ​

BatchDrawable.getQueueType


isUnlit() ​

isUnlit(): boolean

Defined in: libs/scene/src/scene/mesh.ts:979

True if shading is unlit (does not depend on scene lighting).

Returns ​

boolean

Implementation of ​

BatchDrawable.isUnlit


needSceneColor() ​

needSceneColor(): boolean

Defined in: libs/scene/src/scene/mesh.ts:985

Whether the object requires access to the scene color buffer.

Returns ​

boolean

Implementation of ​

BatchDrawable.needSceneColor


needSceneDepth() ​

needSceneDepth(): boolean

Defined in: libs/scene/src/scene/mesh.ts:991

Whether the object requires access to the scene depth (linear or non-linear).

Returns ​

boolean

Implementation of ​

BatchDrawable.needSceneDepth


draw() ​

draw(ctx, renderQueue, hash?): void

Defined in: libs/scene/src/scene/mesh.ts:1073

Issues draw commands for this object.

Parameters ​

ctx ​

DrawContext

Full draw context for the current pass.

renderQueue ​

RenderQueue

The current render queue issuing this draw.

hash? ​

string

Optional hash key for render bundle or pipeline caching.

Returns ​

void

Implementation of ​

BatchDrawable.draw


getMaterial() ​

getMaterial(): MeshMaterial

Defined in: libs/scene/src/scene/mesh.ts:1104

Returns the bound material driving shading for this drawable.

Returns ​

MeshMaterial

Implementation of ​

BatchDrawable.getMaterial


getPrimitive() ​

getPrimitive(): Primitive

Defined in: libs/scene/src/scene/mesh.ts:1110

Returns the geometry primitive to be drawn.

Returns ​

Primitive

Implementation of ​

BatchDrawable.getPrimitive


getBoneMatrices() ​

getBoneMatrices(): Texture2D<unknown>

Defined in: libs/scene/src/scene/mesh.ts:1116

Returns the texture containing bone matrices for skinned meshes.

Returns ​

Texture2D<unknown>

Implementation of ​

BatchDrawable.getBoneMatrices

Overrides ​

MeshBase.getBoneMatrices


getNode() ​

getNode(): Mesh

Defined in: libs/scene/src/scene/mesh.ts:1122

Returns the owning scene node (transform and hierarchy).

Returns ​

Mesh

Implementation of ​

BatchDrawable.getNode

Overrides ​

MeshBase.getNode


onDispose() ​

protected onDispose(): void

Defined in: libs/scene/src/scene/mesh.ts:1137

Disposes the mesh node

Returns ​

void

Overrides ​

MeshBase.onDispose


getPrefabNode() ​

getPrefabNode(): SceneNode

Defined in: libs/scene/src/scene/scene_node.ts:362

Get prefab node this node belongs to, or null if this node does not belongs to any prefab

Returns ​

SceneNode

prefab node this node belongs to

Inherited from ​

MeshBase.getPrefabNode


addGPUClothComponent() ​

addGPUClothComponent(component): GPUClothComponent

Defined in: libs/scene/src/scene/scene_node.ts:501

Adds a GPU cloth component to this node.

Parameters ​

component ​

GPUClothComponent

Returns ​

GPUClothComponent

Inherited from ​

MeshBase.addGPUClothComponent


removeGPUClothComponent() ​

removeGPUClothComponent(component): boolean

Defined in: libs/scene/src/scene/scene_node.ts:506

Removes and disposes a GPU cloth component from this node.

Parameters ​

component ​

GPUClothComponent

Returns ​

boolean

Inherited from ​

MeshBase.removeGPUClothComponent


clone() ​

clone(): Promise<Mesh>

Defined in: libs/scene/src/scene/scene_node.ts:589

Clone this node.

Returns ​

Promise<Mesh>

New node instance

Remarks ​

If a shared model exists, it may create an instanced node. The clone is attached under the same parent; children are cloned based on method and recursive.

Inherited from ​

MeshBase.clone


hasChild() ​

hasChild(child): boolean

Defined in: libs/scene/src/scene/scene_node.ts:619

Whether the given node is a direct child of this node.

Parameters ​

child ​

SceneNode

The node to be checked

Returns ​

boolean

true if the given node is a direct child of this node, false otherwise

Inherited from ​

MeshBase.hasChild


removeChildren() ​

removeChildren(): void

Defined in: libs/scene/src/scene/scene_node.ts:625

Remove all children from this node.

Returns ​

void

Inherited from ​

MeshBase.removeChildren


isParentOf() ​

isParentOf(child): boolean

Defined in: libs/scene/src/scene/scene_node.ts:633

Whether this node is an ancestor (direct or indirect) of the given node.

Parameters ​

child ​

SceneNode

Returns ​

boolean

Inherited from ​

MeshBase.isParentOf


remove() ​

remove(): Mesh

Defined in: libs/scene/src/scene/scene_node.ts:644

Detach this node from its parent.

Returns ​

Mesh

this

Inherited from ​

MeshBase.remove


traverse() ​

traverse(v): void

Defined in: libs/scene/src/scene/scene_node.ts:653

Depth-first traversal of this node's subtree (pre-order).

Parameters ​

v ​

Visitor<SceneNode>

Visitor invoked on each node.

Returns ​

void

Inherited from ​

MeshBase.traverse


iterate() ​

iterate(callback): boolean

Defined in: libs/scene/src/scene/scene_node.ts:667

Iterate self and descendants in pre-order.

Warning: Do not remove children during this iteration. To allow removal, use iterateBottomToTop.

Parameters ​

callback ​

NodeIterateFunc

Called for each node; if returns true, iteration stops.

Returns ​

boolean

If returns true, the iteration will immediately stop.

Inherited from ​

MeshBase.iterate


iterateBottomToTop() ​

iterateBottomToTop(callback): boolean

Defined in: libs/scene/src/scene/scene_node.ts:686

Iterate self and descendants in reverse post-order (bottom-to-top).

Child nodes can be safely removed during this iteration.

Parameters ​

callback ​

NodeIterateFunc

Called for each node; if returns true, iteration stops.

Returns ​

boolean

If returns true, the iteration will immediately stop.

Inherited from ​

MeshBase.iterateBottomToTop


isLight() ​

isLight(): this is BaseLight

Defined in: libs/scene/src/scene/scene_node.ts:703

Type guard: true if this node is a light.

Returns ​

this is BaseLight

Inherited from ​

MeshBase.isLight


isSprite() ​

isSprite(): this is Sprite

Defined in: libs/scene/src/scene/scene_node.ts:711

Type guard: true if this node is a sprite

Returns ​

this is Sprite

Inherited from ​

MeshBase.isSprite


isMSDFTextSprite() ​

isMSDFTextSprite(): this is MSDFTextSprite

Defined in: libs/scene/src/scene/scene_node.ts:715

Type guard: true if this node is a MSDF text sprite

Returns ​

this is MSDFTextSprite

Inherited from ​

MeshBase.isMSDFTextSprite


isMSDFText() ​

isMSDFText(): this is MSDFText

Defined in: libs/scene/src/scene/scene_node.ts:719

Type guard: true if this node is a MSDF text sprite

Returns ​

this is MSDFText

Inherited from ​

MeshBase.isMSDFText


isWater() ​

isWater(): this is Water

Defined in: libs/scene/src/scene/scene_node.ts:723

Type guard: true if this node is a water node.

Returns ​

this is Water

Inherited from ​

MeshBase.isWater


isHair() ​

isHair(): this is HairNode

Defined in: libs/scene/src/scene/scene_node.ts:727

Type guard: true if this node is a hair node.

Returns ​

this is HairNode

Inherited from ​

MeshBase.isHair


isParticleSystem() ​

isParticleSystem(): this is ParticleSystem

Defined in: libs/scene/src/scene/scene_node.ts:731

Type guard: true if this node is a particle system.

Returns ​

this is ParticleSystem

Inherited from ​

MeshBase.isParticleSystem


isBatchGroup() ​

isBatchGroup(): this is BatchGroup

Defined in: libs/scene/src/scene/scene_node.ts:735

Type guard: true if this node is a batch group.

Returns ​

this is BatchGroup

Inherited from ​

MeshBase.isBatchGroup


isClipmapTerrain() ​

isClipmapTerrain(): this is ClipmapTerrain

Defined in: libs/scene/src/scene/scene_node.ts:739

Type guard: true if this node is a clipmap terrain.

Returns ​

this is ClipmapTerrain

Inherited from ​

MeshBase.isClipmapTerrain


isCamera() ​

isCamera(): this is Camera

Defined in: libs/scene/src/scene/scene_node.ts:743

true if this is a camera node, false otherwise

Returns ​

this is Camera

Inherited from ​

MeshBase.isCamera


isPunctualLight() ​

isPunctualLight(): this is PunctualLight

Defined in: libs/scene/src/scene/scene_node.ts:747

true if this is a punctual light node, false otherwise

Returns ​

this is PunctualLight

Inherited from ​

MeshBase.isPunctualLight


getBoundingVolume() ​

getBoundingVolume(): BoundingVolume

Defined in: libs/scene/src/scene/scene_node.ts:761

Gets the bounding volume of the node

Returns ​

BoundingVolume

The bounding volume of the node

Inherited from ​

MeshBase.getBoundingVolume


setBoundingVolume() ​

setBoundingVolume(bv): void

Defined in: libs/scene/src/scene/scene_node.ts:772

Sets the bounding volume of the node

Parameters ​

bv ​

BoundingVolume

The bounding volume to set

Returns ​

void

Inherited from ​

MeshBase.setBoundingVolume


getWorldBoundingVolume() ​

getWorldBoundingVolume(): BoundingVolume

Defined in: libs/scene/src/scene/scene_node.ts:783

Gets the world space bounding volume of the node

Returns ​

BoundingVolume

The world space bounding volume of the node

Inherited from ​

MeshBase.getWorldBoundingVolume


computeWorldBoundingVolume() ​

computeWorldBoundingVolume(localBV): BoundingVolume

Defined in: libs/scene/src/scene/scene_node.ts:793

Computes the world space bounding volume of the node

Parameters ​

localBV ​

BoundingVolume

Returns ​

BoundingVolume

The output bounding volume

Inherited from ​

MeshBase.computeWorldBoundingVolume


invalidateBoundingVolume() ​

invalidateBoundingVolume(): void

Defined in: libs/scene/src/scene/scene_node.ts:799

Force the bounding volume to be recalculated

Returns ​

void

Inherited from ​

MeshBase.invalidateBoundingVolume


invalidateWorldBoundingVolume() ​

invalidateWorldBoundingVolume(transformChanged): void

Defined in: libs/scene/src/scene/scene_node.ts:804

Force the world space bounding volume to be recalculated

Parameters ​

transformChanged ​

boolean

Returns ​

void

Inherited from ​

MeshBase.invalidateWorldBoundingVolume


findNodeById() ​

findNodeById<T>(id): T

Defined in: libs/scene/src/scene/scene_node.ts:876

Finds a scene node by its persistent ID.

Type Parameters ​

T ​

T extends SceneNode

Expected node type.

Parameters ​

id ​

string

Persistent identifier to match against SceneNode.persistentId.

Returns ​

T

The first matching node, or null if not found.

Inherited from ​

MeshBase.findNodeById


findSkeletonById() ​

findSkeletonById(id): SkinBinding

Defined in: libs/scene/src/scene/scene_node.ts:891

Finds a skeleton object by its persistent ID.

Parameters ​

id ​

string

Persistent identifier to match against Skeleton.persistentId.

Returns ​

SkinBinding

The first matchign node, or null if not found.

Inherited from ​

MeshBase.findSkeletonById


findSkinBindingById() ​

findSkinBindingById(id): SkinBinding

Defined in: libs/scene/src/scene/scene_node.ts:899

Finds a skin binding by its persistent ID.

Parameters ​

id ​

string

Persistent identifier to match against SkinBinding.persistentId.

Returns ​

SkinBinding

The first matching binding, or null if not found.

Inherited from ​

MeshBase.findSkinBindingById


findSkeletonRigById() ​

findSkeletonRigById(id): SkeletonRig

Defined in: libs/scene/src/scene/scene_node.ts:914

Finds a shared skeleton rig by its persistent ID.

Parameters ​

id ​

string

Persistent identifier to match against SkeletonRig.persistentId.

Returns ​

SkeletonRig

The first matching rig, or null if not found.

Inherited from ​

MeshBase.findSkeletonRigById


findNodeByName() ​

findNodeByName<T>(name): T

Defined in: libs/scene/src/scene/scene_node.ts:936

Finds a scene node by name.

If multiple nodes share the same name, returns the first match encountered during traversal.

Type Parameters ​

T ​

T extends SceneNode

Expected node type.

Parameters ​

name ​

string

Node name to match.

Returns ​

T

The first matching node, or null if not found.

Remarks ​

Names are not guaranteed unique. Prefer IDs for stable references.

Inherited from ​

MeshBase.findNodeByName


getSerializedMorphTargetGroups() ​

getSerializedMorphTargetGroups(): SerializedMorphTargetGroup[]

Defined in: libs/scene/src/scene/scene_node.ts:1019

Returns serialized morph target groups for this node.

Returns ​

SerializedMorphTargetGroup[]

Inherited from ​

MeshBase.getSerializedMorphTargetGroups


setSerializedMorphTargetGroups() ​

setSerializedMorphTargetGroups(groups): void

Defined in: libs/scene/src/scene/scene_node.ts:1037

Restores serialized morph target groups for this node.

Parameters ​

groups ​

SerializedMorphTargetGroup[]

Returns ​

void

Inherited from ​

MeshBase.setSerializedMorphTargetGroups


invalidateTransform() ​

invalidateTransform(invalidateLocal?): void

Defined in: libs/scene/src/scene/scene_node.ts:1073

Force transform update and notify descendants.

Parameters ​

invalidateLocal? ​

boolean = true

If true, also invalidate local matrix; otherwise only invalidate world matrix.

Returns ​

void

Inherited from ​

MeshBase.invalidateTransform


setMorphTargetWeight() ​

setMorphTargetWeight(name, weight): void

Defined in: libs/scene/src/scene/scene_node.ts:1081

Set morph target weight by name for all meshes in the subtree.

Parameters ​

name ​

string

Morph target name

weight ​

number

Morph target weight

Returns ​

void

Inherited from ​

MeshBase.setMorphTargetWeight


setMorphTargetGroupWeight() ​

setMorphTargetGroupWeight(name, weight): void

Defined in: libs/scene/src/scene/scene_node.ts:1097

Set morph target group weight for the model instance.

Parameters ​

name ​

string

Morph target group name

weight ​

number

Group weight

Returns ​

void

Inherited from ​

MeshBase.setMorphTargetGroupWeight


getMorphTargetGroupWeight() ​

getMorphTargetGroupWeight(name): number

Defined in: libs/scene/src/scene/scene_node.ts:1119

Get morph target group weight.

Parameters ​

name ​

string

Morph target group name

Returns ​

number

The group weight, or 0 if no group was found

Inherited from ​

MeshBase.getMorphTargetGroupWeight


collectMorphTargetNames() ​

collectMorphTargetNames(): string[]

Defined in: libs/scene/src/scene/scene_node.ts:1127

Collect all morph target names from meshes in the subtree.

Returns ​

string[]

Array of unique morph target names

Inherited from ​

MeshBase.collectMorphTargetNames


collectMorphTargetGroupNames() ​

collectMorphTargetGroupNames(): string[]

Defined in: libs/scene/src/scene/scene_node.ts:1143

Collect all model-level morph target group names.

Returns ​

string[]

Array of morph target group names

Inherited from ​

MeshBase.collectMorphTargetGroupNames


onPostClone() ​

protected onPostClone(): void | Promise<void>

Defined in: libs/scene/src/scene/scene_node.ts:1152

Get called when the node was just created by cloning from other node

Returns ​

void | Promise<void>

Inherited from ​

MeshBase.onPostClone


_onAttached() ​

protected _onAttached(): void

Defined in: libs/scene/src/scene/scene_node.ts:1226

Get called when this node is attached to scene

Returns ​

void

Inherited from ​

MeshBase._onAttached


_onDetached() ​

protected _onDetached(): void

Defined in: libs/scene/src/scene/scene_node.ts:1230

Get called when this node is detached from scene

Returns ​

void

Inherited from ​

MeshBase._onDetached


worldToThis() ​

Call Signature ​

worldToThis(v, result?): Vector3

Defined in: libs/scene/src/scene/scene_node.ts:1307

Transform world coordinate to local space

Parameters ​
v ​

Vector3

point or vector in world space

result? ​

Vector3

The output result

Returns ​

Vector3

The transformed local space coordinate

Inherited from ​

MeshBase.worldToThis

Call Signature ​

worldToThis(v, result?): Vector4

Defined in: libs/scene/src/scene/scene_node.ts:1308

Transform world coordinate to local space

Parameters ​
v ​

Vector4

point or vector in world space

result? ​

Vector4

The output result

Returns ​

Vector4

The transformed local space coordinate

Inherited from ​

MeshBase.worldToThis


otherToThis() ​

Call Signature ​

otherToThis(other, v, result?): Vector3

Defined in: libs/scene/src/scene/scene_node.ts:1327

Transform coordinate in other coordinate space to local space

Parameters ​
other ​

SceneNode

The other coordinate space

v ​

Vector3

point or vector in other coordinate space

result? ​

Vector3

The output result

Returns ​

Vector3

The transformed local space coordinate

Inherited from ​

MeshBase.otherToThis

Call Signature ​

otherToThis(other, v, result?): Vector4

Defined in: libs/scene/src/scene/scene_node.ts:1328

Transform coordinate in other coordinate space to local space

Parameters ​
other ​

SceneNode

The other coordinate space

v ​

Vector4

point or vector in other coordinate space

result? ​

Vector4

The output result

Returns ​

Vector4

The transformed local space coordinate

Inherited from ​

MeshBase.otherToThis


thisToWorld() ​

Call Signature ​

thisToWorld(v, result?): Vector3

Defined in: libs/scene/src/scene/scene_node.ts:1338

Transform local coordinate to world space

Parameters ​
v ​

Vector3

point or vector in local space

result? ​

Vector3

The output result

Returns ​

Vector3

The transformed world space coordinate

Inherited from ​

MeshBase.thisToWorld

Call Signature ​

thisToWorld(v, result?): Vector4

Defined in: libs/scene/src/scene/scene_node.ts:1339

Transform local coordinate to world space

Parameters ​
v ​

Vector4

point or vector in local space

result? ​

Vector4

The output result

Returns ​

Vector4

The transformed world space coordinate

Inherited from ​

MeshBase.thisToWorld


thisToOther() ​

Call Signature ​

thisToOther(other, v, result?): Vector3

Defined in: libs/scene/src/scene/scene_node.ts:1358

Transform local space coordinate to other coordinate space

Parameters ​
other ​

SceneNode

The other coordinate space

v ​

Vector3

point or vector in localspace

result? ​

Vector3

The output result

Returns ​

Vector3

The transformed coordinate in other coordinate space

Inherited from ​

MeshBase.thisToOther

Call Signature ​

thisToOther(other, v, result?): Vector4

Defined in: libs/scene/src/scene/scene_node.ts:1359

Transform local space coordinate to other coordinate space

Parameters ​
other ​

SceneNode

The other coordinate space

v ​

Vector4

point or vector in localspace

result? ​

Vector4

The output result

Returns ​

Vector4

The transformed coordinate in other coordinate space

Inherited from ​

MeshBase.thisToOther


getWorldPosition() ​

getWorldPosition(outPos?): Vector3

Defined in: libs/scene/src/scene/scene_node.ts:1367

Gets the position of the xform in world space

Parameters ​

outPos? ​

Vector3

Returns ​

Vector3

position of the xform in world space

Inherited from ​

MeshBase.getWorldPosition


moveBy() ​

moveBy(delta): Mesh

Defined in: libs/scene/src/scene/scene_node.ts:1378

Moves the xform by an offset vector

Parameters ​

delta ​

Vector3

The offset vector

Returns ​

Mesh

self

Inherited from ​

MeshBase.moveBy


scaleBy() ​

scaleBy(factor): Mesh

Defined in: libs/scene/src/scene/scene_node.ts:1387

Scales the xform by a given scale factor

Parameters ​

factor ​

Vector3

The scale factor

Returns ​

Mesh

self

Inherited from ​

MeshBase.scaleBy


setLocalTransform() ​

setLocalTransform(matrix): Mesh

Defined in: libs/scene/src/scene/scene_node.ts:1396

Sets the local transform matrix of the xform

Parameters ​

matrix ​

Matrix4x4

The transform matrix to set

Returns ​

Mesh

self

Inherited from ​

MeshBase.setLocalTransform


calculateLocalTransform() ​

calculateLocalTransform(outMatrix): void

Defined in: libs/scene/src/scene/scene_node.ts:1433

Calculate local transform matrix

Parameters ​

outMatrix ​

Matrix4x4

Matrix object that holds the result of calculation

Returns ​

void

Inherited from ​

MeshBase.calculateLocalTransform


calculateWorldTransform() ​

calculateWorldTransform(outMatrix): void

Defined in: libs/scene/src/scene/scene_node.ts:1440

Calculate world transform matrix

Parameters ​

outMatrix ​

Matrix4x4

Matrix object that holds the result of calculation

Returns ​

void

Inherited from ​

MeshBase.calculateWorldTransform


lookAt() ​

lookAt(eye, target, up): Mesh

Defined in: libs/scene/src/scene/scene_node.ts:1454

Sets the local tranformation matrix by a look-at matrix

Parameters ​

eye ​

Vector3

The eye position used to make the look-at matrix

target ​

Vector3

The target position used to make the look-at matrix

up ​

Vector3

The up vector used to make the look-at matrix

Returns ​

Mesh

self

Inherited from ​

MeshBase.lookAt


updatePerCamera() ​

updatePerCamera(_camera, _elapsedInSeconds, _deltaInSeconds): void

Defined in: libs/scene/src/scene/scene_node.ts:1484

Update node state once per-camera

Parameters ​

_camera ​

Camera

Updates according to which camera

_elapsedInSeconds ​

number

Elapsed time from game start in seconds

_deltaInSeconds ​

number

Elapsed time since previous frame in seconds

Returns ​

void

Inherited from ​

MeshBase.updatePerCamera


reparent() ​

reparent(p?): Mesh

Defined in: libs/scene/src/scene/scene_node.ts:1490

Removes this node from it's parent and add this node to another parent node if required

Parameters ​

p? ​

SceneNode

The new parent node that this node should be added to or null

Returns ​

Mesh

self

Inherited from ​

MeshBase.reparent

Released under the MIT License.