class nape.shape.Circle extends Shape

Available on all platforms

Shape subtype representing a Circle

Instance Fields

var radius:Float

Radius of circle *

* This value must be strictly positive, and attempting to set this value * whilst this Circle is part of a static Body inside a Space will result * in a debug time error.

function new(radius:Float, ?localCOM:Vec2 = null, ?material:Material = null, ?filter:InteractionFilter = null):Void

Construct a new Circle * *

radius

The radius of the circle, this value must be positive. *

localCOM

The local offset for the circle. (default (0,0)) *

material

The material for this circle. (default new Material()) *

filter

The interaction filter for this circle. * (default new InteractionFilter()) *

returns

The constructed Circle *