Rigid body causes object to fall upwards
Asked Answered
E

3

0

I added a rigid body to a cube with no script and with a collier but instead, it falls upwards instead of downwards. I have tried changing the mass to a negative number to reverse the gravity but when i run it automatically changes back to default.
Does anyone know why this happens and how i can fix it?
Im using unity version 2019.2,

Emolument answered 20/11, 2023 at 16:25 Comment(0)
C
0

EditProject SettingsPhysics

Your gravity should be set to a negative number

Chase answered 20/11, 2023 at 16:25 Comment(2)

thanks, my gravity in project settings was set to 24 and when i changed it to -1 it fixed the problem.

Emolument

it's usually set to -9.8 (earths gravity)

Obsequent
H
0

I tried doing that, yet, the objects are still falling upwards. i changed the editor, i tried to re-install unity and the objects are still falling upwards instead of falling downwards. can someone please help??? ;w;

Hummock answered 20/11, 2023 at 14:18 Comment(2)

I happened to me also yesterday. For the character which was going upwards, I removed the animator controller from it to see what happens. The character then fell downwards. I am new into Unity and don't know what this has to do with animations.

Garvy

Rigidbody in newer versions has a gravity scale option. make sure this is set to 1.

Obsequent
D
0

By any chance, didn’t you make the camera itself rigid body? It happened to me, so it might be the issue

Damien answered 2/2 at 9:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.