Skip to main content

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](/create2dcolshape) instead.

Syntax

```csharp 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

```csharp ColShape shape = NAPI.ColShape.Create3DColShape(new Vector3(100.0f, 100.0f, 100.0f), new Vector3(200.0f, 200.0f, 200.0f)); ```