- Home /
Weird gravity when enabling gravity OnTriggerEnter
So I'm a newbie in the world of programming for Unity - I know C# basics and I'm trying to implement them into a small project. I have a car which I want to drive through a prefab made up of objects each with colliders and rigidbodies. I've written it so that when the car collider hits colliders that make up the prefab, gravity enables and the object falls to it's individual pieces (which then after a certain time disappear).
Gravity however doesn't seem to apply correctly to all the objects as you can see here, some of the objects just fly off into oblivion. I'm trying to nail down exactly what is causing it.
Any help with this would be greatly appreciated :)
I would apply more mass to the object your hitting. It looks like gravity is fine. Theres just alot of force applied to the object. Increase friction as well possibly.
Your answer
![](https://koobas.hobune.stream/wayback/20220613024257im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to make objects float 3 Answers