Skip to content

five-on-it / apps/client/src/renderer/models / ActorNode

Class: ActorNode ​

Defined in: apps/client/src/renderer/models.ts:299

Where an actor drawn by the batches stands this frame: a node in all but name (a position, a rotation, a scaling, switched on or off) that lives outside the scene graph, so the scene has nothing to evaluate for it. modelled once it wears a model.

Constructors ​

Constructor ​

new ActorNode(name): ActorNode

Defined in: apps/client/src/renderer/models.ts:313

A node named name.

Parameters ​

name ​

string

Returns ​

ActorNode

Properties ​

modelled ​

readonly modelled: true = true

Defined in: apps/client/src/renderer/models.ts:309

Whether it wears a model (always: an actor without one is a box node).


name ​

readonly name: string

Defined in: apps/client/src/renderer/models.ts:301

Its name, for the debug view.


position ​

readonly position: Vector3

Defined in: apps/client/src/renderer/models.ts:303

Its position (m).


rotationQuaternion ​

rotationQuaternion: Quaternion

Defined in: apps/client/src/renderer/models.ts:305

Its rotation.


scaling ​

readonly scaling: Vector3

Defined in: apps/client/src/renderer/models.ts:307

Its scaling (cover squashes a person).

Methods ​

dispose() ​

dispose(): void

Defined in: apps/client/src/renderer/models.ts:328

Nothing to free: it holds no mesh.

Returns ​

void


isEnabled() ​

isEnabled(): boolean

Defined in: apps/client/src/renderer/models.ts:318

Whether it is shown (a seated character's is not).

Returns ​

boolean


setEnabled() ​

setEnabled(on): void

Defined in: apps/client/src/renderer/models.ts:323

Shows or hides it.

Parameters ​

on ​

boolean

Returns ​

void


worldMatrix() ​

worldMatrix(out): Matrix

Defined in: apps/client/src/renderer/models.ts:333

Its world matrix now, into out.

Parameters ​

out ​

Matrix

Returns ​

Matrix