Skip to content

five-on-it / apps/client/src/renderer/scene / createBoxActor

Function: createBoxActor() ​

createBoxActor(scene, name, color, size): TransformNode

Defined in: apps/client/src/renderer/scene.ts:458

A wireframe actor (a car or a person): a box plus a filled nose so the heading reads at a glance. Its materials are shared by every box of its colour: a rocket in flight makes no material of its own.

Parameters ​

scene ​

Scene

name ​

string

color ​

Color3

size ​

[number, number, number]

Returns ​

TransformNode