|
53 | 53 | * usage is
|
54 | 54 | * <pre>
|
55 | 55 | * AnimControl control model.getControl(AnimControl.class);
|
56 |
| - * EffectTrack track = new EffectTrack(existingEmmitter, control.getAnim("TheAnim").getLength()); |
| 56 | + * EffectTrack track = new EffectTrack(existingEmitter, control.getAnim("TheAnim").getLength()); |
57 | 57 | * control.getAnim("TheAnim").addTrack(track);
|
58 | 58 | * </pre>
|
59 | 59 | *
|
@@ -130,7 +130,7 @@ protected void controlRender(RenderManager rm, ViewPort vp) {
|
130 | 130 | }
|
131 | 131 | }
|
132 | 132 |
|
133 |
| - //Anim listener that stops the Emmitter when the animation is finished or changed. |
| 133 | + //Anim listener that stops the emitter when the animation is finished or changed. |
134 | 134 | private class OnEndListener implements AnimEventListener {
|
135 | 135 |
|
136 | 136 | @Override
|
@@ -160,7 +160,7 @@ public EffectTrack(ParticleEmitter emitter, float length) {
|
160 | 160 | this.emitter = emitter;
|
161 | 161 | //saving particles per second value
|
162 | 162 | this.particlesPerSeconds = emitter.getParticlesPerSec();
|
163 |
| - //setting the emmitter to not emmit. |
| 163 | + //setting the emitter to not emit. |
164 | 164 | this.emitter.setParticlesPerSec(0);
|
165 | 165 | this.length = length;
|
166 | 166 | //Marking the emitter with a reference to this track for further use in deserialization.
|
@@ -204,21 +204,21 @@ public void setTime(float time, float weight, AnimControl control, AnimChannel c
|
204 | 204 | emitted = true;
|
205 | 205 | emitter.setCullHint(CullHint.Dynamic);
|
206 | 206 | emitter.setEnabled(true);
|
207 |
| - //if the emitter has 0 particles per seconds emmit all particles in one shot |
| 207 | + //if the emitter has 0 particles per second, emit all particles in one shot |
208 | 208 | if (particlesPerSeconds == 0) {
|
209 | 209 | emitter.emitAllParticles();
|
210 | 210 | if (!killParticles.stopRequested) {
|
211 | 211 | emitter.addControl(killParticles);
|
212 | 212 | killParticles.stopRequested = true;
|
213 | 213 | }
|
214 | 214 | } else {
|
215 |
| - //else reset its former particlePerSec value to let it emmit. |
| 215 | + //else reset its former particlePerSec value to let it emit. |
216 | 216 | emitter.setParticlesPerSec(particlesPerSeconds);
|
217 | 217 | }
|
218 | 218 | }
|
219 | 219 | }
|
220 | 220 |
|
221 |
| - //stops the emmiter to emit. |
| 221 | + // Stop the emitter from emitting. |
222 | 222 | private void stop() {
|
223 | 223 | emitter.setParticlesPerSec(0);
|
224 | 224 | emitted = false;
|
@@ -278,7 +278,7 @@ public Track cloneForSpatial(Spatial spatial) {
|
278 | 278 | }
|
279 | 279 |
|
280 | 280 | removeUserData(this);
|
281 |
| - //setting user data on the new emmitter and marking it with a reference to the cloned Track. |
| 281 | + //setting user data on the new emitter and marking it with a reference to the cloned Track. |
282 | 282 | setUserData(effectTrack);
|
283 | 283 | effectTrack.emitter.setParticlesPerSec(0);
|
284 | 284 | return effectTrack;
|
@@ -357,7 +357,7 @@ public void setEmitter(ParticleEmitter emitter) {
|
357 | 357 | this.emitter = emitter;
|
358 | 358 | //saving particles per second value
|
359 | 359 | this.particlesPerSeconds = emitter.getParticlesPerSec();
|
360 |
| - //setting the emmitter to not emmit. |
| 360 | + //setting the emitter to not emit. |
361 | 361 | this.emitter.setParticlesPerSec(0);
|
362 | 362 | setUserData(this);
|
363 | 363 | }
|
|
0 commit comments