use of am2.particles.ParticleConverge in project ArsMagica2 by Mithion.
the class Mark method SetupParticle.
private void SetupParticle(World world, double x, double y, double z, double motionx, double motionz, int colorModifier) {
AMParticle effect = (AMParticle) AMCore.proxy.particleManager.spawn(world, "symbols", x, y, z);
if (effect != null) {
effect.AddParticleController(new ParticleConverge(effect, motionx, -0.1, motionz, 1, true));
effect.setMaxAge(40);
effect.setIgnoreMaxAge(false);
effect.setParticleScale(0.1f);
if (colorModifier > -1) {
effect.setRGBColorF(((colorModifier >> 16) & 0xFF) / 255.0f, ((colorModifier >> 8) & 0xFF) / 255.0f, (colorModifier & 0xFF) / 255.0f);
}
}
}
Aggregations