Hello, well, I'm doing a script to plan and still is very green, the question is that instancio 2 bodies when it is in air, and eliminate them when falling to the ground, until there is everything right, the problem is that when it collides with the model that is a building I want to be ditched, but as I go I throw a mistake, of course I can not destroy what does not exist, thank you.
COMMUNITY QUESTION
(Solved)How do I destroy an object if it collides with a model?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
I already changed it I made the same mechanism but four times for each building and it works but it gives me the following error of the same thing that is destroying before the object is created. Any solution for that?
The solution was very easy I just had to put a condition to the rot and force in an if and solved.