CreateSphereColShape: Difference between revisions
(Created page with "Creates a spherical collision shape which checks whether an entity is inside of the spherical area. ==Syntax== <syntaxhighlight lang="C#" >ColShape NAPI.ColShape.CreateSphere...") |
m (Xabi moved page NAPI.ColShape.CreateSphereColShape to CreateSphereColShape) |
Latest revision as of 13:08, 27 November 2019
Creates a spherical collision shape which checks whether an entity is inside of the spherical area.
Syntax
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
ColShape shape = NAPI.ColShape.CreateSphereColShape(new Vector3(100.0f, 100.0f, 100.0f), 50.0f);