Difference between revisions of "love.physics.newCircleShape"

(Oh, there are two new variants.)
m
Line 2: Line 2:
  
 
== Function ==
 
== Function ==
{{newin|[[0.8.0]]|type=variants|plural=yes}}
+
{{newin|[[0.8.0]]|080|type=variants|plural=yes}}
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Line 25: Line 25:
  
 
== Function ==
 
== Function ==
{{oldin|[[0.8.0]]|type=variant}}
+
{{oldin|[[0.8.0]]|080|type=variant}}
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">

Revision as of 13:29, 4 May 2012

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