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

Question Enemy floating in the air

Discussion in 'Navigation' started by NewMagic-Studio, Jun 26, 2020.

  1. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    Dont know why my enemy is floating in the air but still being animated but not as it should, it is not moving like the idle animation dont know why. I am using an navmeshagent, tried with bake and navmeshcomponents but none work, i use a raycast to change the base offset to fit the height of the terrain but doesnt work, with base offset zero keeps floating. I have other enemy models that dont do that, dont know what happens with this one.
     
  2. TinyClub

    TinyClub

    Joined:
    Jul 30, 2018
    Posts:
    1
    you tried using rigidbody for your enemy?
     
  3. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    I solved it, i think it was a mix of a wrong animator avatar and too big local scale