Colshape: Difference between revisions
Jump to navigation
Jump to search
JonChappell (talk | contribs) No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
* Rectangle | * Rectangle | ||
* Tube | * Tube | ||
Colshapes are invisible to players, to make them visible you can use a [[marker]] as an indicator. | |||
==Collision shape functions== | ==Collision shape functions== | ||
{{Collision shape functions}} | {{Collision shape functions}} |
Revision as of 17:38, 18 June 2007
Colshapes are invisible areas that can be used to trigger certain actions when a player or element enters them. For example, you could place a colshape around a base so that as soon as an enemy enters the colshape, an alarm is triggered.
Colshapes are available in the following shapes:
- Circle
- Cuboid
- Sphere
- Rectangle
- Tube
Colshapes are invisible to players, to make them visible you can use a marker as an indicator.
Collision shape functions
- addColPolygonPoint
- createColCircle
- createColCuboid
- createColPolygon
- createColRectangle
- createColSphere
- createColTube
- getColPolygonHeight
- getColPolygonPoints
- getColPolygonPointPosition
- getColShapeType
- getColShapeRadius
- getColShapeSize
- getElementColShape
- getElementsWithinColShape
- isElementWithinColShape
- isInsideColShape
- removeColPolygonPoint
- setColPolygonHeight
- setColPolygonPointPosition
- setColShapeRadius
- setColShapeSize