Packagecom.boristhebrave.Box2DWith.Flint
Classpublic class Physics
InheritancePhysics Inheritance org.flintparticles.common.activities.ActivityBase

This activity creates a Box2D world, and manages the interaction between particles and the world. This class is mainly for convenience, providing a way to add true physics to an Emitter with the least fuss.

It is still necessary to initialize particles with a body, using one of the provided initializers.



Public Properties
 PropertyDefined by
  positionIterations : int = 10
Stability parameter for position correction.
Physics
  velocityIterations : int = 10
Stability parameter for velocity resolution.
Physics
  world : b2World
The physical world.
Physics
Public Methods
 MethodDefined by
  
Physics(lowerBound:Point = null, upperBound:Point = null, scale:Number)
Physics
Property detail
positionIterationsproperty
public var positionIterations:int = 10

Stability parameter for position correction.

See also

Box2D.Dynamics.b2World.Step()
velocityIterationsproperty 
public var velocityIterations:int = 10

Stability parameter for velocity resolution.

See also

Box2D.Dynamics.b2World.Step()
worldproperty 
public var world:b2World

The physical world. You need this reference for initializers.

Constructor detail
Physics()constructor
public function Physics(lowerBound:Point = null, upperBound:Point = null, scale:Number)Parameters
lowerBound:Point (default = null)
 
upperBound:Point (default = null)
 
scale:Number