| Package | com.boristhebrave.Box2DWith.Flint |
| Class | public class BodyRenderer |
| Inheritance | BodyRenderer org.flintparticles.common.renderers.RendererBase |
| Property | Defined by | ||
|---|---|---|---|
| BODY_KEY : * = com.boristhebrave.Box2DWith.Flint::body [static] Use this key to look up the corresponding body of a particle in its dictionary.
| BodyRenderer | ||
| defaultScale : Number = 30 [static]
Setting this value saves the effort of specifying the scale parameter in a lot of constructors.
| BodyRenderer | ||
| OWNSBODY_KEY : * = com.boristhebrave.Box2DWith.Flint::ownsBody [static]
Use this key to look up the owns body value of a particle in its dictionary.
| BodyRenderer | ||
| Method | Defined by | ||
|---|---|---|---|
|
BodyRenderer(world:b2World, scale:Number)
Constructs a BodyRenderer.
| BodyRenderer | ||
| Method | Defined by | ||
|---|---|---|---|
|
removeParticle(particle:Particle):void
The removeParticle method is called when a particle is removed from one
of the emitters that is being rendered by this renderer.
| BodyRenderer | ||
|
renderParticles(particles:Array):void
The renderParticles method is called during the render phase of
every frame if the state of one of the emitters being rendered
by this renderer has changed.
| BodyRenderer | ||
| BODY_KEY | property |
public static var BODY_KEY:* = com.boristhebrave.Box2DWith.Flint::bodyUse this key to look up the corresponding body of a particle in its dictionary.
| defaultScale | property |
public static var defaultScale:Number = 30Setting this value saves the effort of specifying the scale parameter in a lot of constructors.
| OWNSBODY_KEY | property |
public static var OWNSBODY_KEY:* = com.boristhebrave.Box2DWith.Flint::ownsBodyUse this key to look up the owns body value of a particle in its dictionary. The actual value is a boolean determing if the body should be destroyed when the particle is.
| BodyRenderer | () | constructor |
public function BodyRenderer(world:b2World, scale:Number)Constructs a BodyRenderer.
Parametersworld:b2World — The world to be "rendered" to.
|
|
scale:Number — A scaling factor between Flint's pixel co-ordinates and Box2D's units, in pixels/unit.
|
| removeParticle | () | method |
protected override function removeParticle(particle:Particle):voidThe removeParticle method is called when a particle is removed from one of the emitters that is being rendered by this renderer.
Parametersparticle:Particle — The particle.
|
| renderParticles | () | method |
protected override function renderParticles(particles:Array):voidThe renderParticles method is called during the render phase of every frame if the state of one of the emitters being rendered by this renderer has changed.
Parametersparticles:Array — The particles being managed by all the emitters
being rendered by this renderer. The particles are in no particular
order.
|