Game Development Community

Is a new projectile class required? (firehose stream)

by Alex Rice · in Torque Game Engine · 10/25/2004 (7:39 pm) · 5 replies

I've been playing extensively with particle systems in TGE to see if I can simulate a firehose stream. e.g. something like this:

www.american-firefighter.com/photos/pics/498.jpg

The problem is that it's not a projectile, it's a continuous stream of h20, but has ballistic curve. I also want to focus/expand the stream so it will be like a stream or a spread of spray.

I have used an invisible projectile with emitters to get particles to "trace" out the trajectory with h2o and mist, and that looks good like a continuous stream, but when the player moves the nozzle around, the "projectile" nature of it becomes obvious because the beginning of the stream jumps all around because of the delay between shots. The effect is then ruined.

So after lots of experimentation with particle systems and projectiles in TGE, I think I am going to have to hack the engine and create a new projectile class. OR have an extremely rapid fire projectile system (droplets of h20, which seems like a bad idea)

If anyone has suggestions how to begin, or example code for creating one's own projectile class please let me know.

My C++ skills are shabby and my OpenGL skills are nonexistent.

Thanks in advance,

Alex

#1
10/25/2004 (8:00 pm)
WE do the FlameThrower with just the particle engine in Lore I think you could do something similar for a fire hose.
#2
10/26/2004 (4:58 am)
That's uncanny - I have been grappling with the exact same problem. I'm trying to simulate a stream of water (with ballistic properties) that I can 'fan out' into more of a spray.

I had pretty much come to the conclusion that I would have to write an extension to the engine to handle this properly, but would also be very interested if you're able to come up with something that looks good that does not require an engine mod. Likewise, if I come up with anything, I'll let you know.

Cheers,
Russ
#3
10/26/2004 (5:12 am)
Heh, same here only mine would be a spider web stream that fans out to and actual web that holds a player till the spider can get over and eat them.

not high up on my list though
#4
10/26/2004 (7:14 pm)
@anthony- thanks I will download the Lore demo to check the flamethrower effect

@russel and ace- OK I'll let you know what I come up with also.
#5
08/30/2006 (7:16 am)
Can you tell me oin detail how did you create water spray effects or send me your code.
i will be thank ful