- Home /
How can I get an object to recognize it should be on fire?
I have a working flamethrower.
I have a crate. I am attempting to make it so that when the flamethrower hits the crate, a standard asset Flame is spawned on the crate (i.e. the crate catches fire.)
I have no idea how to get the crate to recognize that it has made contact with the particles-- this is a legacy style flame in the flamethrower, the kind that uses an Emitter, an Animator, and a Renderer (it's standard asset Flame turned sideways.) How can I get an object to recognize that it has experienced a collision with the particles, and to appropriately spawn a flame on that object?
Answer by Loius · Dec 01, 2012 at 05:09 AM
Don't forget to search
http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnParticleCollision.html
Very helpful, but this still leaves me uncertain as to how I can spawn a new flame on the crate when the collision message is received by the crate collider?
Your answer
Follow this Question
Related Questions
Pong game collision problems 1 Answer
Check if a pre-determinated area has particles in it? 0 Answers
OnParticleCollision equivalent as a trigger 0 Answers
How to get a wind effect afecting multiple meshes? 1 Answer
Two Particle Systems 1 Answer