本文整理汇总了Java中com.jme3.effect.ParticleMesh类的典型用法代码示例。如果您正苦于以下问题:Java ParticleMesh类的具体用法?Java ParticleMesh怎么用?Java ParticleMesh使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParticleMesh类属于com.jme3.effect包,在下文中一共展示了ParticleMesh类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createFire
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private void createFire() {
/** Uses Texture from jme3-test-data library! */
ParticleEmitter fire = new ParticleEmitter("Emitter", ParticleMesh.Type.Triangle, 30);
Material mat_red = new Material(assetManager, "Common/MatDefs/Misc/Particle.j3md");
mat_red.setTexture("Texture", assetManager.loadTexture("Effects/Explosion/flame.png"));
fire.setMaterial(mat_red);
fire.setImagesX(2);
fire.setImagesY(2); // 2x2 texture animation
fire.setEndColor(new ColorRGBA(1f, 0f, 0f, 1f)); // red
fire.setStartColor(new ColorRGBA(1f, 1f, 0f, 0.5f)); // yellow
fire.getParticleInfluencer().setInitialVelocity(new Vector3f(0, 2, 0));
fire.setStartSize(10f);
fire.setEndSize(1f);
fire.setGravity(0, 0, 0);
fire.setLowLife(0.5f);
fire.setHighLife(1.5f);
fire.getParticleInfluencer().setVelocityVariation(0.3f);
fire.setLocalTranslation(-350, 40, 430);
fire.setQueueBucket(Bucket.Transparent);
rootNode.attachChild(fire);
}
开发者ID:mleoking,项目名称:PhET,代码行数:24,代码来源:TestPostWater.java
示例2: actionPerformed
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
public void actionPerformed(ActionEvent e) {
SceneApplication.getApplication().enqueue(new Callable<Void>() {
public Void call() throws Exception {
ParticleEmitter emit = new ParticleEmitter("Emitter", ParticleMesh.Type.Triangle, 200);
emit.setShape(new EmitterSphereShape(Vector3f.ZERO, 1f));
emit.setGravity(new Vector3f(0, 0, 0));
emit.setLowLife(5);
emit.setHighLife(10);
emit.getParticleInfluencer().setInitialVelocity(new Vector3f(0, 0, 0));
emit.setImagesX(15);
Material mat = new Material(SceneApplication.getApplication().getAssetManager(), "Common/MatDefs/Misc/Particle.j3md");
emit.setMaterial(mat);
node.attachChild(emit);
addSpatialUndo(node, emit);
setModified();
return null;
}
});
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:21,代码来源:NewSpatialPopup.java
示例3: createFire
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private void createFire() {
fire = new ParticleEmitter("Emitter", ParticleMesh.Type.Triangle, 200);
Material fire_mat = new Material(assetManager, "Common/MatDefs/Misc/Particle.j3md");
fire_mat.setTexture("Texture", assetManager.loadTexture("Effects/flame.png"));
fire.setMaterial(fire_mat);
fire.setImagesX(2);
fire.setImagesY(2);
fire.setRandomAngle(true);
attachChild(fire);
fire.setStartColor(new ColorRGBA(1f, 1f, .5f, 1f));
fire.setEndColor(new ColorRGBA(1f, 0f, 0f, 0f));
fire.setGravity(0, 0, 0);
fire.setStartSize(10f);
fire.setEndSize(1f);
fire.setLowLife(2f);
fire.setHighLife(3f);
fire.getParticleInfluencer().setVelocityVariation(4f);
fire.getParticleInfluencer().setInitialVelocity(new Vector3f(0, 3f, 0));
fire.setParticlesPerSec(0);
}
开发者ID:kemonoske,项目名称:ArcaneMining,代码行数:22,代码来源:Explosion.java
示例4: setMeshType
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
/**
* Sets the type of mesh used by the particle emitter.
* @param meshType The mesh type to use
*/
@Override
public void setMeshType(ParticleMesh.Type meshType) {
this.meshType = meshType;
switch (meshType) {
case Point:
particleMesh = new ParticlePointMesh();
this.setMesh(particleMesh);
break;
case Triangle:
particleMesh = new ParticleTriMesh();
this.setMesh(particleMesh);
break;
default:
throw new IllegalStateException("Unrecognized particle type: " + meshType);
}
this.setNumParticles2(particles.length);
}
开发者ID:methusalah,项目名称:OpenRTS,代码行数:22,代码来源:MyParticleEmitter.java
示例5: renderFromControl
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
/**
* Callback from Control.render(), do not use.
*
* @param rm
* @param vp
*/
private void renderFromControl(RenderManager rm, ViewPort vp) {
Camera cam = vp.getCamera();
if (meshType == ParticleMesh.Type.Point) {
float C = cam.getProjectionMatrix().m00;
C *= cam.getWidth() * 0.5f;
// send attenuation params
this.getMaterial().setFloat("Quadratic", C);
}
Matrix3f inverseRotation = Matrix3f.IDENTITY;
TempVars vars = null;
if (!worldSpace) {
vars = TempVars.get();
inverseRotation = this.getWorldRotation().toRotationMatrix(vars.tempMat3).invertLocal();
}
particleMesh.updateParticleData(particles, cam, inverseRotation);
if (!worldSpace) {
vars.release();
}
}
开发者ID:methusalah,项目名称:OpenRTS,代码行数:30,代码来源:MyParticleEmitter.java
示例6: createPlasmaEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
static ParticleEmitter createPlasmaEmitter() {
ParticleEmitter plasma = new ParticleEmitter("plasma-emitter",
ParticleMesh.Type.Triangle, 20);
Material materialRed = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
materialRed.setTexture("Texture",
assets.loadTexture("Effects/plasma-particle.png"));
plasma.setMaterial(materialRed);
plasma.setImagesX(2);
plasma.setImagesY(2);
plasma.setSelectRandomImage(true);
plasma.setStartColor(new ColorRGBA(0.2f, 0.350f, 0.9f, 1.0f));
plasma.setEndColor(new ColorRGBA(0.20f, 0.30f, 0.9f, 0.95f));
plasma.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
plasma.setStartSize(1.5f);
plasma.setEndSize(1.5f);
plasma.setGravity(Vector3f.ZERO);
plasma.setLowLife(0.05f);
plasma.setHighLife(0.05f);
plasma.setParticlesPerSec(100);
plasma.setRandomAngle(true);
return plasma;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:25,代码来源:ElectronChargeInfo.java
示例7: createSmokeEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createSmokeEmitter() {
ParticleEmitter smoke = new ParticleEmitter("smoke-emitter",
ParticleMesh.Type.Triangle, 300);
Material materialGray = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
materialGray.setTexture("Texture",
assets.loadTexture("Effects/flame.png"));
smoke.setMaterial(materialGray);
smoke.setImagesX(2);
smoke.setImagesY(2);
smoke.setSelectRandomImage(true);
smoke.setStartColor(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));
smoke.setStartColor(new ColorRGBA(0.5f, 0.5f, 0.5f, 0.1f));
smoke.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
smoke.setStartSize(2.0f);
smoke.setEndSize(6.0f);
smoke.setGravity(Vector3f.ZERO);
smoke.setLowLife(1f);
smoke.setHighLife(1.3f);
smoke.setParticlesPerSec(100);
smoke.setRandomAngle(true);
return smoke;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:25,代码来源:Fireball.java
示例8: createFireEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
static ParticleEmitter createFireEmitter() {
ParticleEmitter fire = new ParticleEmitter("fire-emitter",
ParticleMesh.Type.Triangle, 200);
Material mat = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
mat.setTexture("Texture", assets.loadTexture("Effects/flame.png"));
fire.setMaterial(mat);
fire.setImagesX(2);
fire.setImagesY(2);
fire.setSelectRandomImage(true);
fire.setStartColor(new ColorRGBA(0.95f, 0.150f, 0.0f, 1.0f));
fire.setEndColor(new ColorRGBA(1.0f, 1.0f, 0.0f, 0.5f));
fire.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
fire.setStartSize(2.5f);
fire.setEndSize(1.0f);
fire.setGravity(Vector3f.ZERO);
fire.setLowLife(0.1f);
fire.setHighLife(0.1f);
fire.setParticlesPerSec(200);
fire.setRandomAngle(true);
return fire;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:24,代码来源:Fireball.java
示例9: createSmokeEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createSmokeEmitter() {
ParticleEmitter smoke = new ParticleEmitter("smoke-emitter",
ParticleMesh.Type.Triangle, 300);
Material material = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
material.setTexture("Texture", assets.loadTexture("Effects/flame.png"));
smoke.setMaterial(material);
smoke.setImagesX(2);
smoke.setImagesY(2);
smoke.setSelectRandomImage(true);
smoke.setStartColor(new ColorRGBA(0.5f, 0.5f, 0.5f, 1f));
smoke.setStartColor(new ColorRGBA(0.5f, 0.5f, 0.5f, 0.1f));
smoke.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
smoke.setStartSize(2f);
smoke.setEndSize(6f);
smoke.setGravity(Vector3f.ZERO);
smoke.setLowLife(1f);
smoke.setHighLife(1.3f);
smoke.setParticlesPerSec(100);
smoke.setRandomAngle(true);
return smoke;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:24,代码来源:MagmaRelease.java
示例10: createFireEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createFireEmitter() {
ParticleEmitter fire = new ParticleEmitter("fire-emitter",
ParticleMesh.Type.Triangle, 300);
Material materialRed = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
materialRed.setTexture("Texture",
assets.loadTexture("Effects/flame.png"));
fire.setMaterial(materialRed);
fire.setImagesX(2);
fire.setImagesY(2);
fire.setSelectRandomImage(true);
fire.setStartColor(new ColorRGBA(0.95f, 0.15f, 0f, 1f));
fire.setEndColor(new ColorRGBA(1f, 1f, 0f, 0.5f));
fire.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
fire.setStartSize(3.5f);
fire.setEndSize(1f);
fire.setGravity(Vector3f.ZERO);
fire.setLowLife(0.1f);
fire.setHighLife(0.1f);
fire.setParticlesPerSec(150);
fire.setRandomAngle(true);
return fire;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:25,代码来源:MagmaRelease.java
示例11: createSmokeEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createSmokeEmitter() {
ParticleEmitter smoke = new ParticleEmitter("smoke-emitter",
ParticleMesh.Type.Triangle, 300);
Material material = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
material.setTexture("Texture",
assets.loadTexture("Effects/flame_alpha.png"));
material.getAdditionalRenderState()
.setBlendMode(RenderState.BlendMode.Alpha);
smoke.setMaterial(material);
smoke.setImagesX(2);
smoke.setImagesY(2);
smoke.setSelectRandomImage(true);
smoke.setStartColor(new ColorRGBA(0.4f, 0.4f, 0.4f, 1.0f));
smoke.setStartColor(new ColorRGBA(0.4f, 0.4f, 0.4f, 0.2f));
smoke.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
smoke.setStartSize(5.0f);
smoke.setEndSize(12.0f);
smoke.setGravity(Vector3f.ZERO);
smoke.setLowLife(1f);
smoke.setHighLife(1.3f);
smoke.setParticlesPerSec(200);
smoke.setRandomAngle(true);
return smoke;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:27,代码来源:Meteor.java
示例12: createFireEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createFireEmitter() {
ParticleEmitter fire = new ParticleEmitter("fire-emitter",
ParticleMesh.Type.Triangle, 100);
Material materialRed = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
materialRed.setTexture("Texture",
assets.loadTexture("Effects/flame.png"));
fire.setMaterial(materialRed);
fire.setImagesX(2);
fire.setImagesY(2);
fire.setSelectRandomImage(true);
fire.setStartColor(new ColorRGBA(0.95f, 0.150f, 0f, 1f));
fire.setEndColor(new ColorRGBA(1f, 1f, 0f, 0.5f));
fire.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
fire.setStartSize(6.5f);
fire.setEndSize(1.5f);
fire.setGravity(Vector3f.ZERO);
fire.setLowLife(0.2f);
fire.setHighLife(0.2f);
fire.setParticlesPerSec(200);
fire.getParticleInfluencer().setVelocityVariation(0.5f);
fire.setRandomAngle(true);
return fire;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:25,代码来源:Meteor.java
示例13: createShockwave
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createShockwave() {
ParticleEmitter wave = new ParticleEmitter("shockwave-emitter",
ParticleMesh.Type.Triangle, 3);
Material mat = new Material(Globals.assets,
"Common/MatDefs/Misc/Particle.j3md");
mat.setTexture("Texture",
Globals.assets.loadTexture("Effects/shockwave.png"));
wave.setMaterial(mat);
wave.setImagesX(1);
wave.setImagesY(1);
wave.setGravity(Vector3f.ZERO);
wave.setStartColor(new ColorRGBA(0.7f, 0.7f, 0.7f, 1f));
wave.setEndColor(new ColorRGBA(0.7f, 0.7f, 0.7f, 0f));
wave.setLowLife(0.5f);
wave.setHighLife(0.5f);
wave.setStartSize(0.50f);
wave.setEndSize(Meteor.SPLASH_RADIUS + 7f);
wave.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
wave.getParticleInfluencer().setVelocityVariation(0f);
wave.setParticlesPerSec(0f);
wave.setFaceNormal(Vector3f.UNIT_Y);
return wave;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:27,代码来源:Meteor.java
示例14: createFireEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createFireEmitter() {
ParticleEmitter fire = new ParticleEmitter("fire-emitter",
ParticleMesh.Type.Triangle, 100);
Material materialRed = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
materialRed.setTexture("Texture",
assets.loadTexture("Effects/flame.png"));
fire.setMaterial(materialRed);
fire.setImagesX(2);
fire.setImagesY(2);
fire.setSelectRandomImage(true);
fire.setStartColor(new ColorRGBA(0.95f, 0.650f, 0.0f, 1.0f));
fire.setEndColor(new ColorRGBA(1.0f, 1.0f, 0.0f, 0.1f));
fire.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
fire.setStartSize(4.5f);
fire.setEndSize(8.5f);
fire.setGravity(Vector3f.ZERO);
fire.setLowLife(0.4f);
fire.setHighLife(0.4f);
fire.setParticlesPerSec(30);
return fire;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:23,代码来源:Firewalk.java
示例15: createTrailEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createTrailEmitter() {
ParticleEmitter trail = new ParticleEmitter("trail-emitter",
ParticleMesh.Type.Triangle, 650);
Material mat
= new Material(assets, "Common/MatDefs/Misc/Particle.j3md");
mat.setTexture("Texture", assets.loadTexture("Effects/smoketrail.png"));
trail.setMaterial(mat);
trail.setImagesX(1);
trail.setImagesY(3);
trail.setSelectRandomImage(true);
trail.setStartColor(new ColorRGBA(0.7f, 0.7f, 0.7f, 0.7f));
trail.setParticleInfluencer(new ParticleInfluencerWithAngleSetting());
trail.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
trail.getParticleInfluencer().setVelocityVariation(0f);
trail.setStartSize(1.7f);
trail.setEndSize(1.7f);
trail.setGravity(Vector3f.ZERO);
trail.setLowLife(0.3f);
trail.setHighLife(0.3f);
trail.setParticlesPerSec(2000);
trail.setFaceNormal(Vector3f.UNIT_Y);
trail.setRandomAngle(true);
return trail;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:26,代码来源:BlindingRay.java
示例16: createSmokeEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createSmokeEmitter() {
ParticleEmitter smoke = new ParticleEmitter("smoke-emitter",
ParticleMesh.Type.Triangle, 300);
Material material = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
material.setTexture("Texture",
assets.loadTexture("Effects/flame_alpha.png"));
material.getAdditionalRenderState()
.setBlendMode(RenderState.BlendMode.Alpha);
smoke.setMaterial(material);
smoke.setImagesX(2);
smoke.setImagesY(2);
smoke.setSelectRandomImage(true);
smoke.setStartColor(new ColorRGBA(0.4f, 0.4f, 0.4f, 1.0f));
smoke.setStartColor(new ColorRGBA(0.4f, 0.4f, 0.4f, 0.1f));
smoke.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
smoke.setStartSize(2.0f);
smoke.setEndSize(6.0f);
smoke.setGravity(Vector3f.ZERO);
smoke.setLowLife(1f);
smoke.setHighLife(1.3f);
smoke.setParticlesPerSec(100);
smoke.setRandomAngle(true);
return smoke;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:27,代码来源:RocketLauncher.java
示例17: createFireEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
static ParticleEmitter createFireEmitter() {
ParticleEmitter fire = new ParticleEmitter("fire-emitter",
ParticleMesh.Type.Triangle, 200);
Material materialRed = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
materialRed.setTexture("Texture",
assets.loadTexture("Effects/flame.png"));
fire.setMaterial(materialRed);
fire.setImagesX(2);
fire.setImagesY(2);
fire.setSelectRandomImage(true);
fire.setStartColor(new ColorRGBA(0.95f, 0.150f, 0.0f, 1.0f));
fire.setEndColor(new ColorRGBA(1.0f, 1.0f, 0.0f, 0.5f));
fire.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
fire.setStartSize(7.5f);
fire.setEndSize(1.5f);
fire.setGravity(Vector3f.ZERO);
fire.setLowLife(0.1f);
fire.setHighLife(0.1f);
fire.setParticlesPerSec(100);
fire.setRandomAngle(true);
return fire;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:25,代码来源:RocketLauncher.java
示例18: createShockwave
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createShockwave() {
ParticleEmitter wave = new ParticleEmitter("shockwave-emitter",
ParticleMesh.Type.Triangle, 2);
Material mat = new Material(Globals.assets,
"Common/MatDefs/Misc/Particle.j3md");
mat.setTexture("Texture",
Globals.assets.loadTexture("Effects/shockwave.png"));
wave.setMaterial(mat);
wave.setImagesX(1);
wave.setImagesY(1);
wave.setGravity(Vector3f.ZERO);
wave.setStartColor(new ColorRGBA(0.7f, 0.7f, 0.7f, 1f));
wave.setEndColor(new ColorRGBA(0.7f, 0.7f, 0.7f, 0f));
wave.setLowLife(0.5f);
wave.setHighLife(0.5f);
wave.setStartSize(0.50f);
wave.setEndSize(RocketLauncher.SPLASH_RADIUS + 7f);
wave.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
wave.getParticleInfluencer().setVelocityVariation(0f);
wave.setParticlesPerSec(0f);
return wave;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:26,代码来源:RocketLauncher.java
示例19: createPlasmaEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
static ParticleEmitter createPlasmaEmitter() {
ParticleEmitter plasma = new ParticleEmitter("plasma-emitter",
ParticleMesh.Type.Triangle, 200);
Material materialRed = new Material(assets,
"Common/MatDefs/Misc/Particle.j3md");
materialRed.setTexture("Texture",
assets.loadTexture("Effects/plasma-particle.png"));
plasma.setMaterial(materialRed);
plasma.setImagesX(2);
plasma.setImagesY(2);
plasma.setSelectRandomImage(true);
plasma.setStartColor(new ColorRGBA(0.8f, 0.350f, 0.9f, 1.0f));
plasma.setEndColor(new ColorRGBA(0.80f, 0.30f, 0.9f, 0.95f));
plasma.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
plasma.setStartSize(5.5f);
plasma.setEndSize(4.5f);
plasma.setGravity(Vector3f.ZERO);
plasma.setLowLife(0.05f);
plasma.setHighLife(0.05f);
plasma.setParticlesPerSec(100);
plasma.setRandomAngle(true);
return plasma;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:25,代码来源:Plasmagun.java
示例20: createTrailEmitter
import com.jme3.effect.ParticleMesh; //导入依赖的package包/类
private ParticleEmitter createTrailEmitter() {
ParticleEmitter trail = new ParticleEmitter("trail-emitter",
ParticleMesh.Type.Triangle, 650);
Material mat
= new Material(assets, "Common/MatDefs/Misc/Particle.j3md");
mat.setTexture("Texture", assets.loadTexture("Effects/smoketrail.png"));
trail.setMaterial(mat);
trail.setImagesX(1);
trail.setImagesY(3);
trail.setSelectRandomImage(true);
trail.setStartColor(new ColorRGBA(0.3f, 0.3f, 0.9f, 1f));
trail.setParticleInfluencer(new ParticleInfluencerWithAngleSetting());
trail.getParticleInfluencer().setInitialVelocity(Vector3f.ZERO);
trail.getParticleInfluencer().setVelocityVariation(0f);
trail.setStartSize(2f);
trail.setEndSize(2f);
trail.setGravity(Vector3f.ZERO);
trail.setLowLife(0.3f);
trail.setHighLife(0.3f);
trail.setParticlesPerSec(2000);
trail.setFaceNormal(Vector3f.UNIT_Y);
return trail;
}
开发者ID:TripleSnail,项目名称:Arkhados,代码行数:24,代码来源:Railgun.java
注:本文中的com.jme3.effect.ParticleMesh类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论