Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    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.
     
unityunity