- Home /
Question by
valentinjs · Jun 12, 2015 at 06:06 PM ·
collisiondistanceprediction
Avoiding objects falling on top of another
Hello everyone!
I have boxes falling from tubes in a random time, but sometimes a box falls on top of another. I would like to prevent this. I already tried to do some predictions but I couldn't make it work very well :/
I've been fighting with this for 2 weeks now and I can't figure out how to solve this.
Thanks!!
sample.jpg
(31.7 kB)
Comment
Answer by FortisVenaliter · Jun 12, 2015 at 06:39 PM
Read up on Layer Based Collision Detection. You just need to adjust the layer mask, and apply proper layers to your objects.
Your answer
![](https://koobas.hobune.stream/wayback/20220613200920im_/https://answers.unity.com/themes/thub/images/avi.jpg)