我试图说明如何处理与试图绕过坡地的参与者的碰撞。 例如,考虑参与者是否位于半管线的底层,希望离开:
- At first the player is on the flat and can go directly left
- At some point the player starts going up a slope, and so needs to go up and left in order to remain on top of the terrain
我应如何处理这一问题?
- Should try and move the player directly left and see if they have collided with terrain - if they have then work out if I should nudge the players position?
- Should I try and work out what the terrain to the players left looks like, and determine in advance what height the player should be placed at?