Colshapes::newCircle: Difference between revisions

From RAGE Multiplayer Wiki
m (category)
mNo edit summary
Line 1: Line 1:
{{sharedFunctionJS}}
{{sharedFunctionJS}}


Creating colshape, circle in the 2D plane
Create a ColShape of circle in the 2D plane
==Parameters==
==Parameters==
* '''x: <span style="color:#008017>Float</span>'''
* '''x: {{RageType|Number}} in float
* '''y: <span style="color:#008017>Float</span>''' 
* '''y: {{RageType|Number}} in float
* '''radius: <span style="color:#008017>Float</span>'''
* '''radius: {{RageType|Number}} in float
* '''dimension:''' {{RageType|Number}} (optional parameter)
* dimension: {{RageType|Number}} (optional parameter)


==Syntax==
==Syntax==
Line 18: Line 18:




[[Category:ColShape]]
[[Category:ColShape API]]
[[Category:Shared Function]]
[[Category:Shared Function]]

Revision as of 17:10, 17 May 2019

Shared
Function

 JavaScript


Create a ColShape of circle in the 2D plane

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)

See Also