isInsideColShape
Client-side
Server-side
Shared
This function checks if a 3D position is inside a colshape or not.
OOP Syntax Help! I don't understand this!
- Method:colshape:isInside(...)
Syntax
bool isInsideColShape ( colshape theShape, float posX, float posY, float posZ )Required arguments
- theShape: The colshape you're checking the position against.
- posX: The X coordinate of the position you're checking.
- posY: The Y coordinate of the position you're checking.
- posZ: The Z coordinate of the position you're checking.
Returns
Returns true if the position is inside the colshape, false if it isn't or if any parameters are invalid.
- bool: result
Code Examples
shared
This function checks if an element is within a colshape.
function isElementInsideColShape(theElement, theColShape) return isInsideColShape(theColShape, getElementPosition(theElement))endSee Also
Colshape Functions
- addColPolygonPoint
- createColCircle
- createColCuboid
- createColPolygon
- createColRectangle
- createColSphere
- createColTube
- getColPolygonHeight
- getColPolygonPointPosition
- getColPolygonPoints
- getColShapeRadius
- getColShapeSize
- getColShapeType
- isInsideColShape
- removeColPolygonPoint
- setColPolygonHeight
- setColPolygonPointPosition
- setColShapeRadius
- setColShapeSize