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.

https://pastebin.com/730A5996

2 comments

0

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?

0

The solution was very easy I just had to put a condition to the rot and force in an if and solved.