SetColPolygonHeight
Jump to navigation
Jump to search
This function is used to change the height of an existing colshape polygon. By default, a colshape polygon is infinitely tall.
Syntax
bool setColPolygonHeight( colshape shape, float floor, float ceil )
OOP Syntax Help! I don't understand this!
- Method: colshape:setHeight(...)
Required Arguments
- shape: The colshape polygon
- floor: The polygon floor (lowest Z coordinate). Parse false to reset this value to 0.
- ceil: The polygon ceiling (highest Z coordinate). Parse false to reset this value to infinitely tall.
Returns
Returns true if the polygon was changed, false if invalid arguments were passed.
Example
Script Example Missing Function SetColPolygonHeight needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
Requirements
This template will be deleted.
See Also
- addColPolygonPoint
- createColCircle
- createColCuboid
- createColPolygon
- createColRectangle
- createColSphere
- createColTube
- getColPolygonHeight
- getColPolygonPoints
- getColPolygonPointPosition
- getColShapeType
- getColShapeRadius
- getColShapeSize
- getElementColShape
- getElementsWithinColShape
- isElementWithinColShape
- isInsideColShape
- removeColPolygonPoint
- setColPolygonHeight
- setColPolygonPointPosition
- setColShapeRadius
- setColShapeSize