getColPolygonHeight
Shared
Returns between which heights a collision polygon detects elements.
float, float getColPolygonHeight(element shape)
Parameters
| Name | Type | Description |
|---|---|---|
| shape | element | A collision shape made by createColPolygon. |
Returns
The floor and the ceiling. Without limits, they are the lowest and highest possible numbers.
Example
local floor, ceiling = getColPolygonHeight(lot)
outputDebugString(("From %.1f to %.1f"):format(floor, ceiling))