Difference between revisions of "CircleShape"

m
Line 4: Line 4:
  
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::CircleShape]] OR [[parent::Shape]]
+
{{#ask: [[Category:Functions]] [[parent::CircleShape]]
 +
| headers=hide
 +
| ?Description
 +
}}
 +
{{#ask: [[Category:Functions]] [[parent::Shape]]
 +
| headers=hide
 +
} ?Description
 +
}}
 +
{{#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:03, 13 February 2011

Circle extends Shape and adds a radius and a local position.

Create a new circle shape with love.physics.newCircleShape.

Functions

CircleShape:getLocalCenterGet the center of the circle in local coordinates.
CircleShape:getPointGets the center point of the circle shape.
CircleShape:getRadiusGets the radius of the circle shape.
CircleShape:getWorldCenterGet the center of the circle in world coordinates.
CircleShape:setPointSets the center point of the circle shape.
CircleShape:setRadiusSets the radius of the circle.

Shape:computeAABB, Shape:computeMass, Shape:destroy, Shape:getBody, Shape:getBoundingBox, Shape:getCategory, Shape:getCategoryBits, Shape:getChildCount, Shape:getData, Shape:getDensity, Shape:getFilterData, Shape:getFriction, Shape:getMask, Shape:getMaskBits, Shape:getRadius, Shape:getRestitution, Shape:getType, Shape:isSensor, Shape:rayCast, Shape:setCategory, Shape:setData, Shape:setDensity, Shape:setFilterData, Shape:setFriction, Shape:setMask, Shape:setRestitution, Shape:setSensor, Shape:testPoint, Shape:testSegment

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