How Do I Keep Rigid Bodies From Going Through Each Other?
I have a game object that has a rigid body. When ever i add gravity though it goes through the floor. The floor is a kinematic rigid body. If it helps the game object also has a box collider that is a trigger. The floor also has a box collider but it isn't a trigger. I'm not sure how to fix it.
Answer by FortisVenaliter · Jul 17, 2017 at 09:23 PM
Why is the floor a kinematic rigidbody? Rigidbodies are for objects that should be affected by physics. So, unless you can dislodge the floor from the world by punching it or something, remove the rigidbody from it and just keep the colliders.
Answer by Major · Jul 18, 2017 at 06:09 AM
Colliders labeled as triggers will not collide with other objects. In your case, do not make the box collider on the gameobject a trigger.
Answer by Abirami-Govindarajan · Jul 24, 2017 at 08:10 AM
Try to add a mesh collider and check on Is Convex.
Your answer
Follow this Question
Related Questions
Car made from Different GameObjects and Empty GameObjects breaks on Collision with Terrain. 0 Answers
Convert (Typecast) Rigidbody to GameObject 2 Answers
RigidBody Cube flying up in the air 2 Answers
Physics Engine doesn't work,Collisions never work 0 Answers
How to restrict object's movement to a bezier curve? 0 Answers