Difference between revisions of "love.physics.newRectangleShape"
m (1 revision: Imported docs from potato.) |
|
(No difference)
|
Revision as of 15:54, 14 February 2010
Function
Synopsis
s = love.physics.newRectangleShape( body, x, y, w, h, 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 w
- The width of the rectangle.
number h
- The height of the rectangle.
number angle (0)
- The initial angle of the rectangle.
Returns
PolygonShape s
- A new PolygonShape.