RigidBody Cube flying up in the air
Hi First off, I have been using Unity for a while but I am new to physics and stuff so keep your answer simple. I am creating a building block game for Android. For the physics of the falling blocks, I am, of course, using RigidBody. However the cubes that are supposed to tumble normally are flying up in the air on the Y axis, collision or no collision. BoxCollider is turned on. The cube starts in the center and is supposed to fall to the MeshCollider floor, but it instead flies up in the air when I click 'Play'. The RigidBody values are at default. Use Gravity is selected. Is Kinematic makes no difference. Help! I cannot find a solution to this. Thank you!
...but I found out why: I set my ground plane collider to "convex". It must have happened by mistake, but anyways - after unchecking that field, everything worked as expected... one hour later...
Answer by blackshtormx · Aug 27, 2016 at 09:05 AM
first of all, check your gravity, go to, Edit->project settings-> physics -> here you will see gravity(it should be -9.81) if it's not then change it.
Answer by MathNerd1O1 · Nov 22, 2020 at 10:58 PM
I actually had this same thing happen to me. The problem was that the object with my rigidbody also had a player controller on it, which was changing the velocities of my object, also messing up the gravity. Do you have any component or script on your object that is changing its velocities?
Your answer
Follow this Question
Related Questions
Car made from Different GameObjects and Empty GameObjects breaks on Collision with Terrain. 0 Answers
AddForce instead of modyfing Velocity 4 Answers
Control accurate velocity and angular velocity 0 Answers
A trigger that changes the downforce of any rigidbody that hits it? 0 Answers
Falling Platform 1 Answer