com.badlogic.gdx.graphics.g2d
Class ParticleEmitterBox2D
java.lang.Object
com.badlogic.gdx.graphics.g2d.ParticleEmitter
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.
Method Summary |
protected com.badlogic.gdx.graphics.g2d.ParticleEmitter.Particle |
newParticle(Sprite sprite)
|
Methods inherited from class com.badlogic.gdx.graphics.g2d.ParticleEmitter |
addParticle, addParticles, allowCompletion, draw, draw, getActiveCount, getAngle, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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,
java.io.BufferedReader reader)
throws java.io.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:
java.io.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
-
newParticle
protected com.badlogic.gdx.graphics.g2d.ParticleEmitter.Particle newParticle(Sprite sprite)
- Overrides:
newParticle
in class ParticleEmitter
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)