Difference between revisions of "love.physics.newCircleShape"
(Added 0.8.0 variant.) |
m |
||
(11 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | Creates a | + | Creates a new [[CircleShape]]. |
== Function == | == Function == | ||
− | {{newin|[[0.8.0]]|type= | + | {{newin|[[0.8.0]]|080|type=variants|plural=yes}} |
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 13: | Line 13: | ||
== Function == | == Function == | ||
− | {{oldin|[[0.8.0]]|type=variant}} | + | === 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 === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 29: | Line 41: | ||
* [[parent::love.physics]] | * [[parent::love.physics]] | ||
* [[Constructs::CircleShape]] | * [[Constructs::CircleShape]] | ||
+ | * [[Constructs::Shape]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Creates a | + | {{#set:Description=Creates a new [[CircleShape]].}} |
{{#set:Since=000}} | {{#set:Since=000}} | ||
+ | |||
== Other Languages == | == Other Languages == | ||
{{i18n|love.physics.newCircleShape}} | {{i18n|love.physics.newCircleShape}} |
Latest revision as of 16:34, 15 June 2024
Creates a new CircleShape.
Contents
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info