Skip to content

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

Class: ActorNode ​

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

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:273

A node named name.

Parameters ​

name ​

string

Returns ​

ActorNode

Properties ​

modelled ​

readonly modelled: true = true

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

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:261

Its name, for the debug view.


position ​

readonly position: Vector3

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

Its position (m).


rotationQuaternion ​

rotationQuaternion: Quaternion

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

Its rotation.


scaling ​

readonly scaling: Vector3

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

Its scaling (cover squashes a person).

Methods ​

dispose() ​

dispose(): void

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

Nothing to free: it holds no mesh.

Returns ​

void


isEnabled() ​

isEnabled(): boolean

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

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

Returns ​

boolean


setEnabled() ​

setEnabled(on): void

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

Shows or hides it.

Parameters ​

on ​

boolean

Returns ​

void


worldMatrix() ​

worldMatrix(out): Matrix

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

Its world matrix now, into out.

Parameters ​

out ​

Matrix

Returns ​

Matrix