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

My character just jumpes up at the beginning of the game

Discussion in 'Editor & General Support' started by malnar1996, Mar 3, 2011.

  1. malnar1996

    malnar1996

    Joined:
    Oct 31, 2010
    Posts:
    31
    Hello.
    I have a problem that some of you maybe had at some point. I have a prefab of my enemy. When I place some of them on the terrain (I just drag them there...), some of them are acting normal, but some of them are just going up, without falling back down. I mean, in 2 seconds, y position of the object is 6.368368e+36 (whatever this means). I could just put them on the places so they don't go up in the air but I can't do that because the user puts them where he likes at the beginning of the game. I hope you know what I'm trying to tell.

    Thank you.
     
  2. Kokumo

    Kokumo

    Joined:
    Jul 23, 2010
    Posts:
    416
    Hello there.
    Maybe it is all about colliders stuff; when two or more colliders are overlapping (and none of them are mark as kinetic), they will "jump".
     
  3. malnar1996

    malnar1996

    Joined:
    Oct 31, 2010
    Posts:
    31
    As I said, some of the objects jump and some of them don't. After I set rigidbody as "is kinematic", everything works fine (at least those 10 examples I tried). Thank you very much.