Difference between revisions of "love.physics.newPolygonShape"

m
Line 15: Line 15:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]
 +
* [[Constructs::PolygonShape]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Creates a new PolygonShape.
+
{{#set:Description=Creates a new PolygonShape.}}
}}
+
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.physics.newPolygonShape}}
 
{{i18n|love.physics.newPolygonShape}}

Revision as of 17:44, 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