Packagecom.boristhebrave.Box2DWith.Flint
Classpublic class CircleInit
InheritanceCircleInit Inheritance org.flintparticles.common.initializers.InitializerBase

This initializer creates bodies with a single circle shape inside, and then attaches them to particles. You need to set the particles radius with CollisionRadiusInit.



Public Methods
 MethodDefined by
  
CircleInit(world:b2World, scale:Number)
Construct a new CircleInit
CircleInit
Constructor detail
CircleInit()constructor
public function CircleInit(world:b2World, scale:Number)

Construct a new CircleInit

Parameters
world:b2World — The world attached to.
 
scale:Number — The scaling factor to use in pixels/unit for initializing the position and velocity of the body given the particle properties.