M MY Multiplayer: Wiki
Lado
Tipo

getColPolygonHeight

Compartilhado

Devolve entre que alturas um polígono de colisão detecta elementos.

float, float getColPolygonHeight(element shape)

Parâmetros

NomeTipoDescrição
shapeelementUma área de colisão criada por createColPolygon.

Retorno

O piso e o teto. Sem limites, são o menor e o maior número possíveis.

Exemplo

local floor, ceiling = getColPolygonHeight(lot)
outputDebugString(("From %.1f to %.1f"):format(floor, ceiling))

Veja também