Search Unity

Question Gravity different in build compared to editor - no scripts

Discussion in 'Editor & General Support' started by vendaar, May 17, 2021.

  1. vendaar

    vendaar

    Joined:
    Dec 15, 2012
    Posts:
    37
    Hello,
    my gravity is different in my build than in the editor. I used no scripts at all. basically just a sphere with a rigid falling down a parcour justt with the standard physics. The ball suddenly seems to have more force?
    Any clue?

    Using Unity 2020.3.6f

    you can see it here: In the editor the ball falls down into the pipe and not just bounces off.
    <- fixed it now by changing some values in the editor and rebuilding but i still want to know if there is some way to explain why that happens and what I can do about it without just playing around with values and rebuilding for testing.
    https://play.unity.com/mg/other/floor-is-lava-328
     
    Last edited: May 17, 2021
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,738
    Always check the numbers first. Prove they're not correct.

    Drop the ball for some discrete number of frames and print out the Time.fixedTime along with the Rigidbody.velocity at each frame. Be sure you do so from the FixedUpdate() loop.

    I'm gonna bet if the fixed time step is the same, the results will be the same.