Skip to content

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

Function: createColliders() ​

createColliders(scene, level): ColliderView

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

The wireframe of every placement that collides (a shape other than none), coloured by kind (terrain green, structure teal, building blue, prop orange): the same triangles the server collides with, so what is drawn can be checked against what is hit. A collider nobody sees (a mesh without a colour group, such as the slope under a flight of stairs) shows here and nowhere else. Built under one node the first time it is shown, as instances of one wireframe mesh per level mesh and kind.

Parameters ​

scene ​

Scene

level ​

LevelData

Returns ​

ColliderView