IsPointWithinColshape
Checks whether a point is into the given colshape.
C# Syntax
ColShape NAPI.ColShape.IsPointWithinColshape(ColShape colShape, Vector3 point);
Parameters
- colShape: parameter input should be in ColShape type
- point: parameter input should be in Vector3 type
Example
[Command("incolshape")]
public void InColshapeCommand(Client player)
{
ColShape cylinder = NAPI.ColShape.CreateCylinderColShape(new Vector3(), 10.0f, 5.0f);
bool pointInside = NAPI.ColShape.IsPointWithinColshape(cylinder, player.Position);
}