Colshapes::newCircle: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
No edit summary
 
Line 2: Line 2:


Create a ColShape of circle in the 2D plane
Create a ColShape of circle in the 2D plane
{{JSContainer|
==Parameters==
==Parameters==
* '''x: {{RageType|Number}} in float
* '''x: {{RageType|Number}} in float
Line 10: Line 12:
==Syntax==
==Syntax==


<syntaxhighlight lang="javascript">
<pre>
mp.colshapes.newCircle(x, y, radius, dimension)
mp.colshapes.newCircle(x, y, radius, dimension)
</syntaxhighlight>
</pre>
 
==Example==
<pre>
// TODO
</pre>
}}


==See Also==
==See Also==

Latest revision as of 11:35, 3 December 2019

Shared
Function

 JavaScript


Create a ColShape of circle in the 2D plane

JavaScript Syntax

Parameters

  • x: Number in float
  • y: Number in float
  • radius: Number in float
  • dimension: Number (optional parameter)

Syntax

mp.colshapes.newCircle(x, y, radius, dimension)

Example

// TODO


See Also