Pular para o conteúdo

getColShapeType

Compartilhada Colshapes OOP colshape:getShapeType()colshape.shapeType

Descobre qual é o formato de uma colshape.

number getColShapeType ( colshape oShape )

Um número identificando a forma, ou false em caso de erro.

ValorFormaCriada por
0CírculocreateColCircle
1CaixacreateColCuboid
2EsferacreateColSphere
3RetângulocreateColRectangle
4PolígonocreateColPolygon
5TubocreateColTube
if getColShapeType(oShape) == 4 then
outputDebugString("essa é um polígono, dá pra mexer nos pontos")
end