Difference between revisions of "love.physics.newRectangleShape"
(Added 0.8.0 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 28: | Line 28: | ||
== 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
Shorthand for creating rectanglar PolygonShapes.
Contents
Function
Available since LÖVE 0.8.0 |
These variants are not supported in earlier versions. |
Synopsis
shape = love.physics.newRectangleShape( width, height )
Arguments
Returns
PolygonShape shape
- A new PolygonShape.
Function
Synopsis
shape = love.physics.newRectangleShape( x, y, width, height, angle )
Arguments
number x
- The offset along the x-axis.
number y
- The offset along the y-axis.
number width
- The width of the rectangle.
number height
- The height of the rectangle.
number angle (0)
- The initial angle of the rectangle.
Returns
PolygonShape shape
- A new PolygonShape.
Function
Removed in LÖVE 0.8.0 |
This variant is not supported in that and later versions. |
Synopsis
s = love.physics.newRectangleShape( body, x, y, width, height, angle )
Arguments
Body body
- The Body to attach the Shape to.
number x
- The offset along the x-axis.
number y
- The offset along the y-axis.
number width
- The width of the rectangle.
number height
- The height of the rectangle.
number angle (0)
- The initial angle of the rectangle.
Returns
PolygonShape s
- A new PolygonShape.
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