Search Unity

How to make sure my player doesn't climb moutains (online fps)

Discussion in 'Physics' started by wizycatdesigns, May 22, 2018.

  1. wizycatdesigns

    wizycatdesigns

    Joined:
    May 17, 2018
    Posts:
    7
    hi i am working on first game in unity and i just started build the map and the town im building has moutains and i am woundering how to get my player (defualt 1st person prefab) to not climb moutains


    the map looks like this scren shuut.png
    please help .w.
     
  2. Artaani

    Artaani

    Joined:
    Aug 5, 2012
    Posts:
    423
    There is a parameter in Character Controller component which describes maximum walkable angle of surface.
     
  3. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    You could use the old fashion way, invisible walls.
     
  4. wizycatdesigns

    wizycatdesigns

    Joined:
    May 17, 2018
    Posts:
    7
    thanks