Create2DColShape
Внешний вид
Creates a 2D collision shape which checks whether an entity is inside of a rectangular area, where height does not count.
Syntax
<syntaxhighlight lang="C#" >ColShape NAPI.ColShape.Create2DColShape(float x, float y, float width, float height, uint dimension = NAPI.GlobalDimension);</syntaxhighlight>
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)
<syntaxhighlight lang="C#" > ColShape shape = NAPI.ColShape.Create2DColShape(100.0f, 100.0f, 50.0f, 50.0f); </syntaxhighlight>