Creates a new [[CircleShape]].

{{notice|Making changes to a [[World]] is not allowed inside of the [[beginContact]], [[endContact]], [[preSolve]], and [[postSolve]] callback functions, as BOX2D locks the world during these callbacks.}}
{{Needs_example}}

== Function ==
{{newin|[[0.8.0]]|080|type=variants|plural=yes}}
=== Synopsis ===
<source lang="lua">
shape = love.physics.newCircleShape( radius )
</source>
=== Arguments ===
{{param|number|radius|The radius of the circle.}}
=== Returns ===
{{param|CircleShape|shape|The new shape.}}

== Function ==
=== Synopsis ===
<source lang="lua">
shape = love.physics.newCircleShape( x, y, radius )
</source>
=== Arguments ===
{{param|number|x|The x position of the circle.}}
{{param|number|y|The y position of the circle.}}
{{param|number|radius|The radius of the circle.}}
=== Returns ===
{{param|CircleShape|shape|The new shape.}}

== Function ==
{{oldin|[[0.8.0]]|080|type=variant}}
=== Synopsis ===
<source lang="lua">
shape = love.physics.newCircleShape( body, x, y, radius )
</source>
=== Arguments ===
{{param|Body|body|The body to attach the shape to.}}
{{param|number|x|The x offset of the circle.}}
{{param|number|y|The y offset of the circle.}}
{{param|number|radius|The radius of the circle.}}
=== Returns ===
{{param|CircleShape|shape|A new CircleShape.}}

== See Also ==
* [[parent::love.physics]]
* [[Constructs::CircleShape]]
* [[Constructs::Shape]]
[[Category:Functions]]
{{#set:Description=Creates a new [[CircleShape]].}}
{{#set:Since=000}}

== Other Languages ==
{{i18n|love.physics.newCircleShape}}