Difference between revisions of "love.physics.newCircleShape"
m |
m (reformatted.) |
||
Line 1: | Line 1: | ||
− | |||
Creates a new [[CircleShape]]. | 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.}} | {{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 == | == Function == |
Revision as of 11:10, 20 November 2019
Creates a new CircleShape.
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. |
Script Example Missing
love.physics.newCircleShape needs a script example, help out by writing one. |
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