Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Gravity not accelerating Rigidbody

Discussion in 'Physics' started by riasillo, Sep 8, 2023.

  1. riasillo

    riasillo

    Joined:
    May 23, 2023
    Posts:
    24
    Can't figure out what I'm not doing right Gravity set in project settings to -9.81

    game object cube with a rigidbody. gravity checked. just falls at a constant rate no matter the height dropped from. what am I missing?

    Do I need to add a force down script to every game object to make it accelerate?
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,521
    No idea, that's not how it works. You're essentially saying then that it goes from 0 to fixed value and never changes. Maybe you're not saying that and if so you should provide some more information.
     
  3. tjmaul

    tjmaul

    Joined:
    Aug 29, 2018
    Posts:
    464
    Probably the „drag“ is too high. Try setting it to zero
     
  4. riasillo

    riasillo

    Joined:
    May 23, 2023
    Posts:
    24
    yes, that's what it appears like. a basic cube with a rigid body (drag at 0). just looks like it falls at a constant rate no matter the height. just feels way too slow. on my 2nd game and it appears the same with a golf ball falling.. any drag at all and it falls real slow.. new to unity, just trying to figure it out. feels like I'm missing a setting somewhere.. if I ratchet gravity up to -20 it starts to look a bit better but I figure that's not really the right solution.
     
  5. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,521
    You mean you're eyeballing it? Did you not look at the velocity? Maybe you're using the wrong scale and just looking at a huge area so this movement looks tiny like looking at cars from orbit. You don't want to use huge camera areas and/or tiny collider scales as you'll encounter stability issues i.e. moving ants with mountain-size forces etc.

    A great example here is this (Units & Gravity @ 4mins):
     
  6. riasillo

    riasillo

    Joined:
    May 23, 2023
    Posts:
    24
    thanks for that. he's describing actually what I was feeling. Floaty, very very floaty... appreciate the link. I need to learn this stuff.
     
  7. riasillo

    riasillo

    Joined:
    May 23, 2023
    Posts:
    24
    that was a great video, really appreciate you sharing, floaty is totally what I was experiencing, I intuitively had set gravity to like 50, started to feel more normal. added in max angular speed but it started to break like he described, with jitters and glue effect. going to try keep the gravity up and increase the update speed. thanks again.
     
    MelvMay likes this.