CreateSphereColShape

From RAGE Multiplayer Wiki
Revision as of 13:08, 27 November 2019 by Xabi (talk | contribs) (Xabi moved page NAPI.ColShape.CreateSphereColShape to CreateSphereColShape)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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);