Difference between revisions of "love.physics.newPolygonShape"

Line 16: Line 16:
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]
 
* [[Constructs::PolygonShape]]
 
* [[Constructs::PolygonShape]]
 +
* [[Constructs::Shape]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Creates a new PolygonShape.}}
 
{{#set:Description=Creates a new PolygonShape.}}

Revision as of 17:47, 25 March 2011

Creates a new PolygonShape.

This shape can have 8 vertices at most, and must form a convex shape.

Function

Synopsis

shape = love.physics.newPolygonShape( body, ... )

Arguments

Body body
The body to attach the shape to.
numbers ...
Vertices of the polygon.

Returns

PolygonShape shape
A new PolygonShape.

See Also


Other Languages