| Modifier and Type | Class and Description |
|---|---|
| private class | ParticleEmitterBox2D.
Particle that can collide to box2d fixtures |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Vector2 | |
| private static final float | EPSILON
If velocities squared is shorter than this it could lead 0 length rayCast that cause c++ assertion at box2d |
| pack-priv float | |
| pack-priv boolean | particleCollided
collision flag |
| pack-priv final RayCastCallback | rayCallBack
default visibility to prevent synthetic accessor creation |
| pack-priv final Vector2 | |
| pack-priv final World |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ParticleEmitterBox2D(World world, BufferedReader reader)
/**Constructs ParticleEmitterBox2D using bufferedReader. |
| public | ParticleEmitterBox2D(World world, ParticleEmitter emitter)
Constructs ParticleEmitterBox2D fully copying given emitter attributes. |
| Modifier and Type | Method and Description |
|---|---|
| protected ParticleEmitter. |
| endPoint | back to summary |
|---|---|
| pack-priv final Vector2 endPoint | |
| EPSILON | back to summary |
|---|---|
| private static final float EPSILON If velocities squared is shorter than this it could lead 0 length rayCast that cause c++ assertion at box2d | |
| normalAngle | back to summary |
|---|---|
| pack-priv float normalAngle | |
| particleCollided | back to summary |
|---|---|
| pack-priv boolean particleCollided collision flag | |
| rayCallBack | back to summary |
|---|---|
| pack-priv final RayCastCallback rayCallBack default visibility to prevent synthetic accessor creation | |
| startPoint | back to summary |
|---|---|
| pack-priv final Vector2 startPoint | |
| world | back to summary |
|---|---|
| pack-priv final World world | |
| ParticleEmitterBox2D | back to summary |
|---|---|
| public ParticleEmitterBox2D(World world) Constructs default ParticleEmitterBox2D. Box2d World is used for rayCasting. Assumes that particles use same unit system that box2d world does. | |
| ParticleEmitterBox2D | back to summary |
|---|---|
| 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. | |
| ParticleEmitterBox2D | back to summary |
|---|---|
| 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. | |
| newParticle | back to summary |
|---|---|
| protected ParticleEmitter. Overrides com.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | translate(float velocityX, float velocityY)
Overrides com. translate particle given amount. |
| ParticleBox2D | back to summary |
|---|---|
| public ParticleBox2D(Sprite sprite) | |
| translate | back to summary |
|---|---|
| public void translate(float velocityX, float velocityY) Overrides com. translate particle given amount. Continuous collision detection achieved by using RayCast from oldPos to newPos.
| |