- Home /
What is best way to destroy car when it is upside down?
I am trying to make infinite game and when car is upside down i want to be destroyed
Answer by tormentoarmagedoom · Mar 26, 2018 at 04:08 PM
I don't know if delete this post, or redirect or just simply say to you this:
You may look for your answer by your own before coming here. And if come here is to ask something specific, and give information about what you want or you need.
You ask ¿how to destroy?
I say use Destroy()
Post moved to Moderation
Sorry that my question is not complete, i just cant find a way to detect when top of my car is touching my ground, only in that case i want to be destroyed.
Answer by RePlexOfficial · Mar 26, 2018 at 05:04 PM
You can add a special collider on the top of the car that detects if it collides with the ground
Answer by Martin_Gonzalez · Mar 26, 2018 at 08:23 PM
two ways:
Throw a raycast with some distance, if the contact is null then destroy
Or
If the rotation of the car is > to certain limit, destroy it
Your answer
![](https://koobas.hobune.stream/wayback/20220612155413im_/https://answers.unity.com/themes/thub/images/avi.jpg)