Views
love.physics.newCircleShape
Create a new CircleShape at (x,y) in local coordinates.
Contents |
Function
Synopsis
shape = love.physics.newCircleShape( body, x, y, radius )
Arguments
Body body- The body to attach the shape to.
number x- The x offset of the circle.
number y- The y offset of the circle.
number radius- The radius of the circle.
Returns
CircleShape shape- A new CircleShape.
Note
love.physics.newCircleShape() anchors from the center of the shape by default.
See Also