Search Unity

Object not moving in Y but position.y falling

Discussion in 'Navigation' started by danield, Jul 14, 2018.

  1. danield

    danield

    Joined:
    Sep 30, 2014
    Posts:
    40
    Hello, I'm getting some conflicting results from the inspector and the output of position.y for all the characters in the scene. The position.y is slowly falling even though no change is seen and I'm using a ray cast to see if player is in view, but since the position fell below the ground, there is no hiding.
    FallingNotMoving.jpg
    Any advice on fixing the behavior would be greatly appreciated.

    As a side note, I'm using code from the old (Unity Stealth Game) tutorial still found on their YouTube channel.