Difference between revisions of "love.physics.newCircleShape"

m
Line 16: Line 16:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]
 +
* [[Constructs::CircleShape]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Create a new CircleShape at (x,y) in local coordinates.}}
 
{{#set:Description=Create a new CircleShape at (x,y) in local coordinates.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.physics.newCircleShape}}
 
{{i18n|love.physics.newCircleShape}}

Revision as of 10:46, 25 March 2011

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.

Note

love.physics.newCircleShape() anchors from the center of the shape by default.

See Also


Other Languages