Game Development Community

Particle collisions

by Mark Schmidt · in Torque Game Builder · 06/07/2005 (8:49 pm) · 8 replies

Is it possible to specify collision behavior for particles? Basically, as an example, what if I create a particle effect for rain. Can I make it so the rain hits the roof of a house or hits a tree and dies out right there? Make sense?

#1
06/08/2005 (4:11 pm)
That would be nice, but each particle would need to be a scene object. Doesn't seem like it would be too difficult to implement, but it's kind of a specialization so you may have to implement it yourself (and post it as a resource). ;)
#2
06/08/2005 (4:13 pm)
I've been hesitant to start up a tease post in this thread, but we actually had an intern that wanted to play with this idea during his "warming up" period in T2D--Josh said that it was "possible with some effort", but both the intern and I looked at it for a bit and couldn't really get into it...so to back Jason up: ...any of you crazy T2D super-coders out there want to take on the challenge? Only rule is that you can't bother Josh/Melv about it!
#3
06/08/2005 (5:15 pm)
Some people would expect a complete particle system to handle collisions and other dynamics. I, for one, would really like such a feature in the current system, but I do realize that the architecture of the scenegraph might not easilly allow it.
#4
06/09/2005 (1:31 am)
Hans, possibly without knowing it, hit on the real point; it's not a complete system yet. I've heard people say that the "scenegraph might not easily allow XXX" quite a few times recently. Not sure why this is being said as the scenegraph makes things easier, not harder. If a particle emitter wanted to list of objects within the vicinity to check against, then the scenegraph provides all the queries you'd need to do it.

With that said, particle-collisions are always going to be an expensive operation and open to abuse. Learning the art of balancing a particle-system without collisions is an art unto itself, nevermind with collisions. I'd love to tinker with this and definately will do as we get more of the core stuff out of the way such as animations, ISO tile-maps, networking, tools, diet-coke, cream-cakes etc.

You don't know how much it pains me to not be playing with fun things like particle-collisions rather than file-formats and the like but you all need a solid base to work from so it's all good. :)

- Melv.
#5
06/09/2005 (1:39 am)
I definately could see particle-collisions killing a system quickly, even particle effects not properly tweaked can do that without moderation already. Then again it could provide some nifty effects if carefully watched, I for one am glad your working on other more important things Melv :)
#6
06/09/2005 (2:58 am)
Yes, it seems to me that the priorities are correct here, we need that fileformat over collision aware particles. I am glad, however, that you acknowledge it as a feature you'd like to see in particles.
#7
06/09/2005 (1:45 pm)
Yes Melv, *please* finish the cream-cakes post haste!

:)
#8
06/13/2005 (4:29 pm)
FYI, setLayer works just fine on particles. This may be a good solution for me for the time being.