Water Fountain Particles
by Christian · in Torque Game Engine · 12/18/2006 (7:25 pm) · 0 replies

Heya, i'm trying to get my waterfall to go straight up and at the top split off going down in many directions. It currently isn't going straight up, and I don't know how to use the particles to add another particle emmitter to another direction. My code for the particle water going up is
datablock ParticleData( WaterParticle )
{
textureName = "~/data/shapes/campfire_particles/fire";
dragCoefficient = 0.0;
gravityCoefficient = -0.3; // Gravity pulls down, but a negative value makes the particles rise instead of sink
inheritedVelFactor = 0.00;
useInvAlpha = false;
spinRandomMin = -30.0;
spinRandomMax = 30.0;
lifetimeMS = 1700;
lifetimeVarianceMS = 500;
times[0] = 0.0;
times[1] = 0.5;
times[2] = 1.0;
colors[0] = "0 0 1 1.3";
colors[1] = "0 0 .9 1.6";
colors[2] = "0 0 1 1.0";
sizes[0] = 1.0;
sizes[1] = 1.0;
sizes[2] = 1.0;
};
datablock ParticleEmitterData( WaterParticleEmitter )
{
particles = "WaterParticle";
ejectionPeriodMS = 15;
periodVarianceMS = 5;
ejectionVelocity = 0.005;
velocityVariance = 0.10;
thetaMin = 0.0;
thetaMax = 90.0;
};
datablock ParticleEmitterNodeData( WaterParticleEmitterNode )
{
timeMultiple = 1;
};and code for water going down is
datablock ParticleData( Water2Particle )
{
textureName = "~/data/shapes/campfire_particles/fire";
dragCoefficient = 0.0;
gravityCoefficient = 0.3; // Gravity pulls down, but a negative value makes the particles rise instead of sink
inheritedVelFactor = 0.00;
useInvAlpha = false;
spinRandomMin = -30;
spinRandomMax = 30;
lifetimeMS = 2000;
lifetimeVarianceMS = 250;
times[0] = 0.0;
times[1] = 0.5;
times[2] = 1.0;
colors[0] = "0 0 1 1.3";
colors[1] = "0 0 .9 1.6";
colors[2] = "0 0 1 1.0";
sizes[0] = 1.0;
sizes[1] = 1.0;
sizes[2] = 1.0;
};
datablock ParticleEmitterData( Water2ParticleEmitter )
{
particles = "Water2Particle";
ejectionPeriodMS = 15;
periodVarianceMS = 5;
ejectionVelocity = 0.005;
velocityVariance = 0.10;
thetaMin = 0.0;
thetaMax = 90.0;
};
datablock ParticleEmitterNodeData( Water2ParticleEmitterNode )
{
timeMultiple = 1;
};Basically i'm just trying to change the direction of the water particles.