love.physics.newRectangleShape
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