Create2DColShape
(Redirected from NAPI.ColShape.Create2DColShape)
Creates a 2D collision shape which checks whether an entity is inside of a rectangular area, where height does not count.
Syntax
ColShape NAPI.ColShape.Create2DColShape(float x, float y, float width, float height, uint dimension = NAPI.GlobalDimension);
Required Arguments
- x: parameter input should be in float type.
- y: parameter input should be in float type.
- width: parameter input should be in float type.
- height: parameter input should be in float type.
Optional Arguments
- dimension: parameter input should be in uint type.
NOTE: This function returns data in ColShape type.
Usage example(s)
ColShape shape = NAPI.ColShape.Create2DColShape(100.0f, 100.0f, 50.0f, 50.0f);