Skip to content

five-on-it / packages/world/src/geometry / triangleBlocks

Function: triangleBlocks() ​

triangleBlocks(level, t, x, z, surface, clearance): boolean

Defined in: packages/world/src/geometry.ts:512

Whether triangle t (an index from trianglesNear) is a wall for someone standing on ground surface high at (x, z) with clearance to spare: the rule of isOpenGround, one triangle at a time, for the navigation grid.

Parameters ​

level ​

LevelData

t ​

number

x ​

number

z ​

number

surface ​

number

clearance ​

number

Returns ​

boolean