Skip to main content

CreateCylinderColShape

Creates a cylinder shaped colshape object.

C#​

ColShape NAPI.ColShape.CreateCylinderColShape(Vector3 position, float range, float height, uint dimension = NAPI.GlobalDimension);

Parameters​

  • position: parameter input should be in Vector3 type
  • range: parameter input should be in float type
  • height: parameter input should be in float type
  • dimension: parameter input should be in uint type

Example​

ColShape cylinder = NAPI.ColShape.CreateCylinderColShape(new Vector3(), 10.0f, 5.0f);