@ -1,5 +1,5 @@
/ *
* Copyright ( c ) 2009 - 201 2 jMonkeyEngine
* Copyright ( c ) 2009 - 2020 jMonkeyEngine
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
@ -66,7 +66,7 @@ public class TestExplosionEffect extends SimpleApplication {
private void createFlame ( ) {
flame = new ParticleEmitter ( "Flame" , EMITTER_TYPE , 32 * COUNT_FACTOR ) ;
flame . setSelectRandomImage ( true ) ;
flame . setStartColor ( new ColorRGBA ( 1f , 0 . 4f , 0 . 05f , ( float ) ( 1f / COUNT_FACTOR_F ) ) ) ;
flame . setStartColor ( new ColorRGBA ( 1f , 0 . 4f , 0 . 05f , ( 1f / COUNT_FACTOR_F ) ) ) ;
flame . setEndColor ( new ColorRGBA ( . 4f , . 22f , . 12f , 0f ) ) ;
flame . setStartSize ( 1 . 3f ) ;
flame . setEndSize ( 2f ) ;
@ -89,7 +89,7 @@ public class TestExplosionEffect extends SimpleApplication {
private void createFlash ( ) {
flash = new ParticleEmitter ( "Flash" , EMITTER_TYPE , 24 * COUNT_FACTOR ) ;
flash . setSelectRandomImage ( true ) ;
flash . setStartColor ( new ColorRGBA ( 1f , 0 . 8f , 0 . 36f , ( float ) ( 1f / COUNT_FACTOR_F ) ) ) ;
flash . setStartColor ( new ColorRGBA ( 1f , 0 . 8f , 0 . 36f , 1f / COUNT_FACTOR_F ) ) ;
flash . setEndColor ( new ColorRGBA ( 1f , 0 . 8f , 0 . 36f , 0f ) ) ;
flash . setStartSize ( . 1f ) ;
flash . setEndSize ( 3 . 0f ) ;
@ -113,7 +113,7 @@ public class TestExplosionEffect extends SimpleApplication {
private void createRoundSpark ( ) {
roundspark = new ParticleEmitter ( "RoundSpark" , EMITTER_TYPE , 20 * COUNT_FACTOR ) ;
roundspark . setStartColor ( new ColorRGBA ( 1f , 0 . 29f , 0 . 34f , ( float ) ( 1 . 0 / COUNT_FACTOR_F ) ) ) ;
roundspark . setEndColor ( new ColorRGBA ( 0 , 0 , 0 , ( float ) ( 0 . 5f / COUNT_FACTOR_F ) ) ) ;
roundspark . setEndColor ( new ColorRGBA ( 0 , 0 , 0 , 0 . 5f / COUNT_FACTOR_F ) ) ;
roundspark . setStartSize ( 1 . 2f ) ;
roundspark . setEndSize ( 1 . 8f ) ;
roundspark . setShape ( new EmitterSphereShape ( Vector3f . ZERO , 2f ) ) ;
@ -135,7 +135,7 @@ public class TestExplosionEffect extends SimpleApplication {
private void createSpark ( ) {
spark = new ParticleEmitter ( "Spark" , Type . Triangle , 30 * COUNT_FACTOR ) ;
spark . setStartColor ( new ColorRGBA ( 1f , 0 . 8f , 0 . 36f , ( float ) ( 1 . 0f / COUNT_FACTOR_F ) ) ) ;
spark . setStartColor ( new ColorRGBA ( 1f , 0 . 8f , 0 . 36f , 1 . 0f / COUNT_FACTOR_F ) ) ;
spark . setEndColor ( new ColorRGBA ( 1f , 0 . 8f , 0 . 36f , 0f ) ) ;
spark . setStartSize ( . 5f ) ;
spark . setEndSize ( . 5f ) ;
@ -156,7 +156,7 @@ public class TestExplosionEffect extends SimpleApplication {
private void createSmokeTrail ( ) {
smoketrail = new ParticleEmitter ( "SmokeTrail" , Type . Triangle , 22 * COUNT_FACTOR ) ;
smoketrail . setStartColor ( new ColorRGBA ( 1f , 0 . 8f , 0 . 36f , ( float ) ( 1 . 0f / COUNT_FACTOR_F ) ) ) ;
smoketrail . setStartColor ( new ColorRGBA ( 1f , 0 . 8f , 0 . 36f , 1 . 0f / COUNT_FACTOR_F ) ) ;
smoketrail . setEndColor ( new ColorRGBA ( 1f , 0 . 8f , 0 . 36f , 0f ) ) ;
smoketrail . setStartSize ( . 2f ) ;
smoketrail . setEndSize ( 1f ) ;
@ -183,7 +183,7 @@ public class TestExplosionEffect extends SimpleApplication {
debris . setSelectRandomImage ( true ) ;
debris . setRandomAngle ( true ) ;
debris . setRotateSpeed ( FastMath . TWO_PI * 4 ) ;
debris . setStartColor ( new ColorRGBA ( 1f , 0 . 59f , 0 . 28f , ( float ) ( 1 . 0f / COUNT_FACTOR_F ) ) ) ;
debris . setStartColor ( new ColorRGBA ( 1f , 0 . 59f , 0 . 28f , 1 . 0f / COUNT_FACTOR_F ) ) ;
debris . setEndColor ( new ColorRGBA ( . 5f , 0 . 5f , 0 . 5f , 0f ) ) ;
debris . setStartSize ( . 2f ) ;
debris . setEndSize ( . 2f ) ;
@ -208,7 +208,7 @@ public class TestExplosionEffect extends SimpleApplication {
shockwave = new ParticleEmitter ( "Shockwave" , Type . Triangle , 1 * COUNT_FACTOR ) ;
// shockwave.setRandomAngle(true);
shockwave . setFaceNormal ( Vector3f . UNIT_Y ) ;
shockwave . setStartColor ( new ColorRGBA ( . 48f , 0 . 17f , 0 . 01f , ( float ) ( . 8f / COUNT_FACTOR_F ) ) ) ;
shockwave . setStartColor ( new ColorRGBA ( . 48f , 0 . 17f , 0 . 01f , . 8f / COUNT_FACTOR_F ) ) ;
shockwave . setEndColor ( new ColorRGBA ( . 48f , 0 . 17f , 0 . 01f , 0f ) ) ;
shockwave . setStartSize ( 0f ) ;