Hey guys. Im trying to achieve a sandstorm effect with the particle system in Dark GDK. Ive really never used the particle system before, so this really is all new to me. Basically, what Im trying to do is create particles in front of the camera, no matter where it moves. That works by doing this(or so it seems):
nx = dbNewXValue(dbCameraPositionX(),dbCameraAngleY(),2);
nz = dbNewZValue(dbCameraPositionZ(),dbCameraAngleY(),2);
dbPositionParticles(1,nx,dbCameraPositionY() - 5,nz);
What Im trying to achieve is this constant particle emission that slides across the screen. Not emitting from below me. Does that mean I should put the emitter to the one side of the camera at all times?
Im doing this at the moment:
int r = 2;
int nx, nz;
r = r + 2;
dbMakeParticles(1,0,1,50);dbColorParticles(1,115,106,73);
nx = dbNewXValue(dbcameraPositionX(),dbCameraAngleY(),2);
nz = dbNewZValue(dbCameraPositionZ(),dbCameraAngleY(),2);
dbPositionParticles(1,nx,dbCameraPositionY() - 5,nz);
dbSetParticleLife(1,100);
dbSetParticleVelocity(1,.5);
dbSetParticleSpeed(1,.02);
dbSetParticleGravity(1,9.8);
I really am probably doing particles all wrong, so any advice or point in a direction would really be appreciated.