com.jme3.effect.influencers.DefaultParticleInfluencer Java Examples
The following examples show how to use
com.jme3.effect.influencers.DefaultParticleInfluencer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultParticlesTreeNodeFactory.java From jmonkeybuilder with Apache License 2.0 | 5 votes |
@Override @FxThread public <T, V extends TreeNode<T>> @Nullable V createFor(@Nullable final T element, final long objectId) { if (element instanceof ParticleEmitter) { return unsafeCast(new ParticleEmitterTreeNode((ParticleEmitter) element, objectId)); } else if (element instanceof EmitterShape) { if (element instanceof EmitterBoxShape) { return unsafeCast(new EmitterBoxShapeTreeNode((EmitterBoxShape) element, objectId)); } else if (element instanceof EmitterSphereShape) { return unsafeCast(new EmitterSphereShapeTreeNode((EmitterSphereShape) element, objectId)); } else if (element instanceof EmitterPointShape) { return unsafeCast(new EmitterPointShapeTreeNode((EmitterPointShape) element, objectId)); } else if (element instanceof EmitterMeshConvexHullShape) { return unsafeCast(new EmitterMeshConvexHullShapeTreeNode((EmitterMeshConvexHullShape) element, objectId)); } else if (element instanceof EmitterMeshFaceShape) { return unsafeCast(new EmitterMeshFaceShapeTreeNode((EmitterMeshFaceShape) element, objectId)); } else if (element instanceof EmitterMeshVertexShape) { return unsafeCast(new EmitterMeshVertexShapeTreeNode((EmitterMeshVertexShape) element, objectId)); } return unsafeCast(new EmitterShapeTreeNode((EmitterShape) element, objectId)); } else if (element instanceof ParticleInfluencer) { if (element instanceof EmptyParticleInfluencer) { return unsafeCast(new EmptyParticleInfluencerTreeNode((EmptyParticleInfluencer) element, objectId)); } else if (element instanceof RadialParticleInfluencer) { return unsafeCast(new RadialParticleInfluencerTreeNode((RadialParticleInfluencer) element, objectId)); } else if (element instanceof DefaultParticleInfluencer) { return unsafeCast(new DefaultParticleInfluencerTreeNode((DefaultParticleInfluencer) element, objectId)); } return unsafeCast(new ParticleInfluencerTreeNode((ParticleInfluencer) element, objectId)); } return null; }
Example #2
Source File: DefaultParticleInfluencerTreeNode.java From jmonkeybuilder with Apache License 2.0 | 4 votes |
public DefaultParticleInfluencerTreeNode(@NotNull final DefaultParticleInfluencer element, final long objectId) { super(element, objectId); }
Example #3
Source File: CreateDefaultParticleInfluencerAction.java From jmonkeybuilder with Apache License 2.0 | 4 votes |
@Override @FxThread protected @NotNull ParticleInfluencer createInfluencer() { return new DefaultParticleInfluencer(); }