Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

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,777
    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...