Shape:destroy

Shape:destroy Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Explicitly destroys the Shape. When you don't have time to wait for garbage collection, this function may be used to free the object immediately, but note that an error will occur if you attempt to use the object after calling this function. Note that Box2D doesn't allow destroying or creating shapes during collision callbacks. Function Synopsis Shape:destroy( ) Arguments None. Returns Nothing

Shape:getBody

Shape:getBody Available since LÖVE 0.7.0 This function is not supported in earlier versions. Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Get the Body the shape is attached to. Function Synopsis body = Shape:getBody( ) Arguments None. Returns Body body The body the shape is attached to. See Also Shape

Shape:getBoundingBox

Shape:getBoundingBox Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Gets the bounding box of the shape. This function can be used in a nested fashion with love.graphics.polygon. Function Synopsis A bounding box is the smallest rectangle that encapsulates the entire polygon. x1, y1, x2, y2, x3, y3, x4, y4 = Shape:getBoundingBox( ) Vertexes are returned starting from the bottom-left in a clockwise fashion (bottom-left, top-left, top-right, bottom-right). A

Shape:getCategory

Shape:getCategory Removed in LÖVE 0.8.0 Use Fixture:setCategory instead. Gets the categories this shape is a member of. The number of categories the shape is a member of is the number of return values. Categories are used for allowing/disallowing certain collision. Function Synopsis ... = Shape:getCategory( ) Arguments None. Returns numbers ... Numbers from 1-16. See Also Shape

Shape:getCategoryBits

Shape:getCategoryBits Removed in LÖVE 0.8.0 Use Fixture:getCategory instead. Gets the categories as a 16-bit integer. A set bit indicates membership of that category. Function Synopsis An = Shape:getCategoryBits( ) Arguments None. Returns number An Integer value representing the categories. See Also Shape

Shape:getChildCount

Shape:getChildCount Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the number of children the shape has. Function Synopsis count = Shape:getChildCount( ) Arguments None. Returns number count The number of children. See Also Shape

Shape:getData

Shape:getData Removed in LÖVE 0.8.0 Use Fixture:getUserData instead. Get the data set with setData. Function Synopsis v = Shape:getData( ) Arguments None. Returns any v The data previously set, or nil if none. See Also Shape Shape:setData

Shape:getDensity

Shape:getDensity Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Gets the density of the Shape. Function Synopsis density = Shape:getDensity( ) Arguments None. Returns number density The density of the Shape. See Also Shape

Shape:getFilterData

Shape:getFilterData Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Gets the filter data of the Shape. Function Synopsis categoryBits, maskBits, groupIndex = Shape:getFilterData( ) Arguments None. Returns number categoryBits A 16-bit integer representing category membership. number maskBits A 16-bit integer representing masked categories. number groupIndex An integer representing the group index. See Also Shape

Shape:getFriction

Shape:getFriction Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Gets the friction of this shape. Function Synopsis friction = Shape:getFriction( ) Arguments None. Returns number friction The friction of this Shape. See Also Shape