Search Unity

Player on slopes and over objects

Discussion in 'Scripting' started by yangmeng, Dec 28, 2006.

  1. yangmeng

    yangmeng

    Joined:
    Dec 5, 2006
    Posts:
    573
    My player cimbs right up onto many of the objects in the game I am making. I don't want this behavior and tried adjusting the "slope" setting. But after lowering the number, even when the player stops dead at a small bump in the "ground" I have, it still runs up onto objects.
    Any advice as to how I should prevent this?
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    try turning "slope" down and turning "step offset" up.
     
  3. yangmeng

    yangmeng

    Joined:
    Dec 5, 2006
    Posts:
    573
    Thank you. It was indeed "Step Offset", but I turned that to zero and left slope as it was and got the results I wanted. Somehow I assumed step offset was equivalent to a real-world stride distance...