Create3DColShape: Difference between revisions
(Created page with "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. ==S...") |
m (Xabi moved page NAPI.ColShape.Create3DColShape to Create3DColShape) |
Latest revision as of 13:07, 27 November 2019
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
ColShape NAPI.ColShape.Create3DColShape(Vector3 start, Vector3 end [, uint dimension = NAPI.GlobalDimension ]);
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
ColShape shape = NAPI.ColShape.Create3DColShape(new Vector3(100.0f, 100.0f, 100.0f), new Vector3(200.0f, 200.0f, 200.0f));