Create3DColShape
Внешний вид
(перенаправлено с «NAPI.ColShape.Create3DColShape»)
Creates a 3D collision shape which checks whether an entity is inside of a rectangular area. If you don't care about the height, you can use Create2DColShape instead.
Syntax
<syntaxhighlight lang="C#" >ColShape NAPI.ColShape.Create3DColShape(Vector3 start, Vector3 end [, uint dimension = NAPI.GlobalDimension ]);</syntaxhighlight>
Required Arguments
- start: parameter input should be in Vector3 type.
- end: parameter input should be in Vector3 type.
Optional Arguments
- dimension: parameter input should be in uint type.
NOTE: This function returns data in ColShape type.
Usage example(s)
Example Description <syntaxhighlight lang="C#" > ColShape shape = NAPI.ColShape.Create3DColShape(new Vector3(100.0f, 100.0f, 100.0f), new Vector3(200.0f, 200.0f, 200.0f)); </syntaxhighlight>