Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Best way to stop character from going off the edge?

Discussion in 'Getting Started' started by LumoKvin, Nov 9, 2019.

  1. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    97
    I don't want the character to go off the edge. These are some ideas, I had:
    • Use a raycast to check for ground in front of the character.
    • Use a nav mesh somehow.
    What would you recommend? What is the best way to stop the character from going off the edge?
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    6,746
    I might just place a collider at the edge.