Documentation
Introduction
Getting Started
Game Distribution
Config Files
License
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.joystickreleased
love.joystickpressed
love.load
love.update
love.draw
love.keypressed
love.keyreleased
love.mousepressed
love.mousereleased
love.run
Edit
Type
PolygonShape
Polygon is a convex polygon with up to 8 sides.
Create a new polygon shape with
love.physics.newPolygonShape
.
Functions
destroy( )
Explicitly destroys the Shape.
getBody( )
Get the body the shape is attached to.
getBoundingBox( )
Gets the bounding box of the shape.
getCategory( )
Gets the categories this shape is a member of.
getCategoryBits( )
Gets the categories as a 16-bit integer.
getData( )
Get the data set with setData.
getDensity( )
Gets the density of the Shape.
getFilterData( )
Gets the filter data of the Shape.
getFriction( )
Gets the friction of this shape.
getMask( )
Gets which categories this shape should collide with.
getMaskBits( )
Returns a 16-bit integer representing the masked categories.
getRestitution( )
Gets the restitution of this shape.
getType( )
Gets a string representing the Shape.
isSensor( )
Checks whether a Shape is a sensor or not.
setCategory( ... )
Sets the categories this shape is a member of.
setData( v )
Set data to be passed to the collision callback.
setDensity( density )
Sets the density of a Shape.
setFilterData( categoryBits, maskBits, groupIndex )
Sets the filter data for a Shape.
setFriction( friction )
Sets the friction of the shape.
setMask( ... )
Sets which categories this shape should collide with.
setRestitution( restitution )
Sets the restitution of the shape.
setSensor( sensor )
Sets whether this shape should act as a sensor.
testPoint( x, y )
Checks whether a point lies inside the shape.
testSegment( x1, y1, x2, y2 )
Checks whether a line segment intersects a shape.
Supertypes
Shape
See Also
love.physics.newPolygonShape
Copyright © 2006-2010 LÖVE Development Team.
Visit Homepage
–
Ask a Question