Documentation
Introduction
Getting Started
License
Game Distribution
conf.lua
Documentation Guide
Modules
love
love.audio
love.event
love.filesystem
love.graphics
love.image
love.joystick
love.keyboard
love.mouse
love.physics
love.sound
love.timer
Callbacks
love.load
love.keypressed
love.update
love.draw
love.keyreleased
love.mousepressed
love.mousereleased
Edit
Type
Polygon
Polygon is a convex polygon with up to 8 sides.
Create a new polygon shape with
love.physics.newPolygonShape
.
Functions
getBody( )
Get the body the shape is attached to.
getBoundingBox( )
Get the bounding box around the shape.
getCategory( )
getData( )
getDensity( )
getFilterData( )
getFriction( )
getMask( )
getRestituion( )
getType( )
isSensor( )
setCategory( )
setData( )
setDensity( )
setFilterData( )
setFriction( )
setMask( )
setRestitution( )
setSensor( )
testPoint( )
testSegment( x1, y1, x2, y2 )
Checks whether a line segment intersects a shape.
Supertypes
Shape
See Also
love.physics.newPolygonShape
Copyright © 2006-2009 LÖVE Development Team.
Visit Homepage
–
Ask a Question