Difference between revisions of "love.physics.newCircleShape"

m (See Also)
Line 42: Line 42:
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]
 
* [[Constructs::CircleShape]]
 
* [[Constructs::CircleShape]]
 +
* [[Constructs::Shape]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Creates a circle shape.}}
 
{{#set:Description=Creates a circle shape.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 +
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.physics.newCircleShape}}
 
{{i18n|love.physics.newCircleShape}}

Revision as of 16:14, 7 February 2013

Accessories-text-editor.png Script Example Missing

love.physics.newCircleShape needs a script example, help out by writing one.

 


Creates a circle shape.

Function

Available since LÖVE 0.8.0
These variants are not supported in earlier versions.

Synopsis

shape = love.physics.newCircleShape( radius )

Arguments

number radius
The radius of the circle.

Returns

CircleShape shape
The new shape.

Function

Synopsis

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

Arguments

number x
The x position of the circle.
number y
The y position of the circle.
number radius
The radius of the circle.

Returns

CircleShape shape
The new shape.

Function

Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.

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


Other Languages