- Home /
vehicle falls through the ground
Greetings! I'm making a car racing game and I'm a beginner ..so the problem is that as i click on play my car falls through the ground..I have imported the car using Unity Standard Assets & hence the colliders are already applied to all the four wheels..I also have attached a screenshot for reference.I created a long bridge using Autodesk Maya & I've imported the bridge in Unity ..My car is moving perfectly on a plain surface or terrain without falling through the ground however when i placed my car on that bridge the car doesnt seem to move and it falls through the bridge..I tried adding "box collider" & "rigid body" (I checked the option- use gravity) as well to the bridge but still the car is falling through the bridge ..Please help me since 2 weeks I'm trying to figure it out but I haven't achieved any success ..Any help would be appreciated ! :)
Answer by FlightOfOne · Dec 04, 2016 at 06:01 PM
I think it's something very, very simple. You do not need rigidbody and gravity on the bridge. I have a feeling that your box collider is too large(or too small) that when you place the car, it is actually inside the collider. That will cause it to fall through since it's already inside the collider. You can adjust the size and the position of the collider, independent of the bridge.
Can you take a screenshot while the bridge is selected, so we can see the inspector on it?
Hey thanks for the answer,as I'm a beginner I'm not able to figure it out that my box collider is big or small than my car.I have attached a screenshot while my bridge is selected & you can see the inspector tab
It looks like your mesh collider doesn't have a mesh applied to it. Have you applied 'Generate Colliders' when you imported the model?
Your answer
Follow this Question
Related Questions
Respawn with damage nwh 1 Answer
Utilizing Multiple Scripts for Car Movement in a Racing Game 1 Answer
Infinite Road Generation using Colliders, is this wrong? 0 Answers
WheelCollider - I don't have a circle of Collider 1 Answer
How can I create alerts with symbols and sounds for a car HUD? 0 Answers