Examples of NewtonianParticleInfluencer


Examples of com.jme3.effect.influencers.NewtonianParticleInfluencer

            // preparing influencer
            ParticleInfluencer influencer;
            int phystype = ((Number) particleSettings.getFieldValue("phystype")).intValue();
            switch (phystype) {
                case PART_PHYS_NEWTON:
                    influencer = new NewtonianParticleInfluencer();
                    ((NewtonianParticleInfluencer) influencer).setNormalVelocity(((Number) particleSettings.getFieldValue("normfac")).floatValue());
                    ((NewtonianParticleInfluencer) influencer).setVelocityVariation(((Number) particleSettings.getFieldValue("randfac")).floatValue());
                    ((NewtonianParticleInfluencer) influencer).setSurfaceTangentFactor(((Number) particleSettings.getFieldValue("tanfac")).floatValue());
                    ((NewtonianParticleInfluencer) influencer).setSurfaceTangentRotation(((Number) particleSettings.getFieldValue("tanphase")).floatValue());
                    break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.