Skip to content

five-on-it / apps/client/src/renderer/spike-strip / createSpikeStrips

Function: createSpikeStrips() ​

createSpikeStrips(scene, dark, steel): object

Defined in: apps/client/src/renderer/spike-strip.ts:36

The strips of a scene: one link mesh and one spikes mesh, each strip a row of their instances.

Parameters ​

scene ​

Scene

dark ​

StandardMaterial

steel ​

StandardMaterial

Returns ​

dispose() ​

dispose(strip): void

Takes a strip away.

Parameters ​

strip ​

SpikeStrip

Returns ​

void

make() ​

make(name): SpikeStrip

A new strip, empty.

Parameters ​

name ​

string

Returns ​

SpikeStrip

place() ​

place(strip, at, turn, length): void

Puts a strip at its centre and turn, length m long.

Parameters ​

strip ​

SpikeStrip

at ​
x ​

number

y ​

number

z ​

number

turn ​

Quaternion

length ​

number

Returns ​

void