Difference between revisions of "Colshapes::newCircle"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
m
 
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

Js.png JavaScript


Create a ColShape of circle in the 2D plane

JavaScript Syntax
Jslogo.png

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