|
Is it possible to detect where a stream of particles is colliding? I don't need the particles to bounce or anything crazy like that. I just need to know if it's intersecting a mesh. Is that within the range of Unity's capabilities?
(comments are locked)
|
|
I haven't tried this pefore, but thought of doing something like that for a flamethrower. Check this out, it might help: http://unity3d.com/support/documentation/Components/class-WorldParticleCollider.html
(comments are locked)
|
|
there is a component called particle collider that you can use to make particles lose energy or bounce or ... when colliding with other particles. there is a check box (bool value) in this component called SendCollisionMessage that if you check it a OnParticleCollision event will be called in all scripts attached to the GameObject containing the particle collider and the GameObject that particles collided with. so you can use this function in your mesh object and do what you want when particles collide with you. as you can see in the sample of documentation you can see the object that you collide with in the passed argument. I should add that I'll be developing on iPhone. The goal is to have a narrow stream of water. Would message sending incur too high a load on the iPhone platform?
Jan 28 '10 at 04:08 AM
inveni0
you can test it for yourself. it's depending on many factors. try to keep the code inside message lightweight and you'll be good to go. i don't have any experience in iphone development.
Jan 28 '10 at 05:23 AM
Ashkan_gc
(comments are locked)
|
