Difference between revisions of "PolygonShape"

m
Line 4: Line 4:
  
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::PolygonShape]] OR [[parent::Shape]]
+
{{#ask: [[Category:Functions]] [[parent::PolygonShape]]
 +
| headers=hide
 +
| ?Description
 +
}}
 +
{{#ask: [[Category:Functions]] [[parent:Shape]]
 +
| headers=hide
 +
| ?Descrition
 +
}}
 +
{{#ask: [[Category:Functions]] [[parent::Object]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
Line 10: Line 18:
 
== Supertypes ==
 
== Supertypes ==
 
[[Shape]]
 
[[Shape]]
 +
[[Object]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]

Revision as of 02:06, 13 February 2011

Polygon is a convex polygon with up to 8 sides.

Create a new polygon shape with love.physics.newPolygonShape or love.physics.newRectangleShape.

Functions

PolygonShape:getPointsGet the local coordinates of the polygon's vertices.
PolygonShape:validateValidates whether the PolygonShape is convex.
Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

Shape Object

See Also

Other Languages