five-on-it / apps/client/src/renderer/level-batches / placeGroup
Function: placeGroup()
placeGroup(
def,group,world,mirrored,positions,at,normals?):number
Defined in: apps/client/src/renderer/level-batches.ts:253
Places a group of a mesh in the world as a placement's matrix says, every corner its own vertex: its positions written from at (a vertex index), and its faces' normals with them when normals is given. Scaled by −1 along an axis, a face's corners go the other way round. Returns how many corners it wrote.
Parameters
def
group
number
world
Matrix
mirrored
boolean
positions
Float32Array
at
number
normals?
Float32Array<ArrayBufferLike>
Returns
number