Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Gravity Not Working At All

Discussion in 'Physics' started by EllaMMae, Sep 17, 2022.

  1. EllaMMae

    EllaMMae

    Joined:
    Jun 17, 2020
    Posts:
    1
    I have a problem with the gravity in my unity 3d scene.

    My physics are default and so are the time settings.

    If I add a new game object like a sphere or square and then add a rigid body component. After starting the game, it doesn't fall.

    It is not kinematic and has use gravity checked ( as default)

    I've watched the y-axis and nothing changes.

    I'm not using any scripts that manipulate or use time in any way.

    There are no other colliders in the scene, I have removed them all.
     
  2. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,850
    Make sure it has a collider on it as well.. Check the Project Settings to be sure your gravity has a non-zero value. Make a specific Physics Layer to try to work on. Other than that..mystery from your explanation. Happen in a new project?
     
  3. lightbug14

    lightbug14

    Joined:
    Feb 3, 2018
    Posts:
    447
    Check the rigidbody position constraints. Make sure the position is "free".
     
  4. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,497
    Gravity works regardless the collider or the physics layer. Those have effect on collisions only. As @lightbug14 pointed out, the only setting I can think of that could cause that effect is the rigidbody constraint enabled in the Y position.
     
  5. unity_rezo

    unity_rezo

    Joined:
    Jul 3, 2022
    Posts:
    1
    You can also check whether the GameObject is static or not. and if it is static you can change it to Non-Static
     
  6. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,317
    The GameObject Static flag has nothing to do with physics here.