com.badlogic.gdx.graphics.g2d
Class ParticleEmitterBox2D

java.lang.Object
  extended by com.badlogic.gdx.graphics.g2d.ParticleEmitter
      extended by com.badlogic.gdx.graphics.g2d.ParticleEmitterBox2D

public class ParticleEmitterBox2D
extends ParticleEmitter

Author:
kalle_h ParticleEmitterBox2D use box2d rayCast:ing to achieve continuous collision detection against box2d fixtures. If particle detect collision it change it's direction before actual collision would occur. Velocity is 100% reflected. These particles does not have any other physical attributes or functionality. Particles can't collide to other particles.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g2d.ParticleEmitter
ParticleEmitter.GradientColorValue, ParticleEmitter.NumericValue, ParticleEmitter.Particle, ParticleEmitter.ParticleValue, ParticleEmitter.RangedNumericValue, ParticleEmitter.ScaledNumericValue, ParticleEmitter.SpawnEllipseSide, ParticleEmitter.SpawnShape, ParticleEmitter.SpawnShapeValue
 
Field Summary
 
Fields inherited from class com.badlogic.gdx.graphics.g2d.ParticleEmitter
duration, durationTimer
 
Constructor Summary
ParticleEmitterBox2D(World world)
          Constructs default ParticleEmitterBox2D.
ParticleEmitterBox2D(World world, BufferedReader reader)
          /**Constructs ParticleEmitterBox2D using bufferedReader.
ParticleEmitterBox2D(World world, ParticleEmitter emitter)
          Constructs ParticleEmitterBox2D fully copying given emitter attributes.
 
Method Summary
 
Methods inherited from class com.badlogic.gdx.graphics.g2d.ParticleEmitter
addParticle, addParticles, allowCompletion, draw, draw, flipY, getActiveCount, getAngle, getBoundingBox, getDelay, getDuration, getEmission, getGravity, getImagePath, getLife, getLifeOffset, getMaxParticleCount, getMinParticleCount, getName, getPercentComplete, getRotation, getScale, getSpawnHeight, getSpawnShape, getSpawnWidth, getSprite, getTint, getTransparency, getVelocity, getWind, getX, getXOffsetValue, getY, getYOffsetValue, isAdditive, isAligned, isAttached, isBehind, isComplete, isContinuous, load, reset, save, setAdditive, setAligned, setAttached, setBehind, setContinuous, setFlip, setImagePath, setMaxParticleCount, setMinParticleCount, setName, setPosition, setSprite, start, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticleEmitterBox2D

public ParticleEmitterBox2D(World world)
Constructs default ParticleEmitterBox2D. Box2d World is used for rayCasting. Assumes that particles use same unit system that box2d world does.

Parameters:
world -

ParticleEmitterBox2D

public ParticleEmitterBox2D(World world,
                            BufferedReader reader)
                     throws IOException
/**Constructs ParticleEmitterBox2D using bufferedReader. Box2d World is used for rayCasting. Assumes that particles use same unit system that box2d world does.

Parameters:
world -
reader -
Throws:
IOException

ParticleEmitterBox2D

public ParticleEmitterBox2D(World world,
                            ParticleEmitter emitter)
Constructs ParticleEmitterBox2D fully copying given emitter attributes. Box2d World is used for rayCasting. Assumes that particles use same unit system that box2d world does.

Parameters:
world -
emitter -


Copyright © 2013. All Rights Reserved.