Difference between revisions of "love.physics.newRectangleShape"
m |
|||
Line 2: | Line 2: | ||
== Function == | == Function == | ||
− | |||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | shape = love.physics.newRectangleShape( width, height ) | + | shape = love.physics.newRectangleShape( body[, x, y ], width, height[, angle ] ) |
</source> | </source> | ||
− | === Arguments === | + | === Required Arguments === |
+ | {{Removed feature|0.8.0| | ||
+ | {{param|Body|body|The Body to attach the Shape to.}} | ||
+ | |080}} | ||
{{param|number|width|The width of the rectangle.}} | {{param|number|width|The width of the rectangle.}} | ||
{{param|number|height|The height of the rectangle.}} | {{param|number|height|The height of the rectangle.}} | ||
− | === | + | === Optional Arguments === |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{param|number|x|The offset along the x-axis.}} | {{param|number|x|The offset along the x-axis.}} | ||
{{param|number|y|The offset along the y-axis.}} | {{param|number|y|The offset along the y-axis.}} | ||
− | |||
− | |||
{{param|number|angle (0)|The initial angle of the rectangle.}} | {{param|number|angle (0)|The initial angle of the rectangle.}} | ||
=== Returns === | === Returns === | ||
{{param|PolygonShape|shape|A new PolygonShape.}} | {{param|PolygonShape|shape|A new PolygonShape.}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See Also == | == See Also == |
Revision as of 14:21, 21 October 2012
Shorthand for creating rectanglar PolygonShapes.
Contents
Function
Synopsis
shape = love.physics.newRectangleShape( body[, x, y ], width, height[, angle ] )
Required Arguments
Removed in LÖVE 0.8.0
Body body
- The Body to attach the Shape to.
Optional Arguments
number x
- The offset along the x-axis.
number y
- The offset along the y-axis.
number angle (0)
- The initial angle of the rectangle.
Returns
PolygonShape shape
- 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