Function
love.physics.newRectangleShape( body, x, y, w, h, angle )
Shorthand for creating rectangluar PolygonShapes. The rectangle will be created at (x,y) in local coordinates.
Synopsis
s = love.physics.newRectangleShape( body, x, y, w, h, angle )
Parameters
body Body The Body to attach the Shape to.
x number The offset along the x-axis.
y number The offset along the y-axis.
w number The width of the rectangle.
h number The height of the rectangle.
angle = 0 number The initial angle of the rectangle.
Returns
s PolygonShape A new PolygonShape.
Copyright © 2006-2010 LÖVE Development Team.