- Home /
Handling two objects collisions in the right order
I have to objects: "Ext" and "Int". When "Ext" collides with "Int" "Ext" is destroyed; while when "Int" collides with "Ent" a new "Int" is instantiated in a particular position.
What is the right order and code to write this and make it work?
I tried stuff but I end up with Int spawning endlessly and Ent not being destroyed.
Answer by MichaelABC · Oct 25, 2021 at 01:04 PM
I decided to divide the whole thing in two separate scripts, getting one at the time to work correctly before anything else. But I still have problems, more details in the next question.
You can follow the conversation here: https://forum.unity.com/threads/handling-two-objects-collisions-in-the-right-order.1185775/#post-7588093
Your answer
Follow this Question
Related Questions
Instantiate 1 object after 2 objects collide. ( C# ) 1 Answer
Instantiate and Destroy an object while crossing a line with its clone also 1 Answer
Creating a Switch that Controls a Gate 1 Answer
"Destroy" bullet without turning off trail renderer 2 Answers
Destroy() not working on collision 2 Answers