Difference between revisions of "love.physics.newCircleShape"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Create a new CircleShape at (x,y) in local coordinates.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 16: Line 16:
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Create a new CircleShape at (x,y) in local coordinates.}}

Revision as of 16:17, 14 February 2010

Create a new CircleShape at (x,y) in local coordinates.

Function

Synopsis

shape = love.physics.newCircleShape( body, x, y, radius )

Arguments

Body body
The body to attach the shape to.
number x
The x offset of the circle.
number y
The y offset of the circle.
number radius
The radius of the circle.

Returns

CircleShape shape
A new CircleShape.

See Also