Type
PolygonShape
Functions
getType( ) Gets an integer representing the shape type.
getFriction( ) Gets the friction of this shape.
getRestitution( ) Gets the restitution of this shape.
getCategoryBits( ) Gets the category bits of the shape.
getCategory( ) Gets the categories this shape is a member of.
getMaskBits( ) Gets the mask bits of the shape.
getMask( ) Gets which categories this shape should collide with.
getData( ) Gets the data set with setData.
isSensor( ) Checks whether this shape acts as a sensor or not
setFriction( friction ) Sets the friction of the shape.
setRestitution( restitution ) Sets the restitution of the shape.
setCategoryBits( bits ) Sets the category bits of the shape.
setCategory( ... ) Sets the categories this shape is a member of.
setMaskBits( bits ) Sets the mask bits of the shape.
setMask( ... ) Sets which categories this shape should collide with.
setData( any ) Sets data to be passed to the collision callback.
setSensor( sensor ) Sets whether this shape should act as a sensor.
getBoundingBox( ) Gets the bounding box of the shape.
testPoint( x, y ) Checks whether a point lies inside the shape.
testSegment( x1, y1, x2, y2 ) Checks whether a line segment intersects a shape.
getPoints( ) Gets the transformed points of the PolygonShape.
destroy( ) Explicitly destroys the PolygonShape.
Copyright © 2006-2008 LÖVE Development Team.