Skip to main content

CreateSphereColShape

Creates a spherical collision shape which checks whether an entity is inside of the spherical area.

Syntax

```csharp ColShape NAPI.ColShape.CreateSphereColShape(Vector3 position, float range [, uint dimension = NAPI.GlobalDimension ]); ```

Required Arguments

  • position: parameter input should be in Vector3 type.
  • range: parameter input should be in float type.
  • 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.CreateSphereColShape(new Vector3(100.0f, 100.0f, 100.0f), 50.0f); ```