Search Unity

Problem with a sphere (some wobbling caused by rigidbodys gravity)

Discussion in 'Physics' started by Firlefanz73, Oct 27, 2015.

  1. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,316
    Hello,

    I put a sphere on a 100% straight ground. It has a rigidbody with Standard values (also tried to set angular drag to 0 but no Change). It has a mass of 1 and gravity set to True. And a Sphere Collider.

    When I give it a constant force of X=-3 it starts to roll but it also starts to wobble a little bit.
    I turned of all the scripts and everything.

    Any idea? How do I get rid of wobbling here?

    Thanks a lot,

    Firlefanz
     
  2. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    886
    Maybe freezing of rotation in some axes can solve it, but I'm not sure if you wanna move only in X-direction...
    Could you post a piece of code here? Probably it'll bring some light on it.
     
  3. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,316
    Our Level platform contains multiple blocks. each is exactly 1x1x1 large.
    The sphere contains a rigidbody and a sphere collider. It is minimal "jumping".

    when I Exchange all single cubes with one big cube, the jumping stops.

    it is only very small jumps, but somehow it would be great if I could get rid of it.

    no code needed here. the sphere has a constant force of x=-3, it also happens then without any script attached.

    thanks a lot for your interest and a good hint :)