Difference between revisions of "love.physics.newPolygonShape"

m (1 revision: Importing from potato (again).)
m
Line 1: Line 1:
 
 
Creates a new PolygonShape.
 
Creates a new PolygonShape.
  
Line 19: Line 18:
 
{{#set:Description=Creates a new PolygonShape.
 
{{#set:Description=Creates a new PolygonShape.
 
}}
 
}}
 +
== Other Languages ==
 +
{{i18n|love.physics.newPolygonShape}}

Revision as of 20:43, 18 November 2010

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