Create2DColShape: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Creates a 2D collision shape which checks whether an entity is inside of a rectangular area, where height does not count. ==Syntax== <syntaxhighlight lang="C#" >ColShape NAPI...")
 
 

Latest revision as of 13:07, 27 November 2019

Creates a 2D collision shape which checks whether an entity is inside of a rectangular area, where height does not count.

Syntax

ColShape NAPI.ColShape.Create2DColShape(float x, float y, float width, float height, uint dimension = NAPI.GlobalDimension);

Required Arguments

  • x: parameter input should be in float type.
  • y: parameter input should be in float type.
  • width: parameter input should be in float type.
  • height: parameter input should be in float type.

Optional Arguments

  • dimension: parameter input should be in uint type.

NOTE: This function returns data in ColShape type.

Usage example(s)

ColShape shape = NAPI.ColShape.Create2DColShape(100.0f, 100.0f, 50.0f, 50.0f);