anthonymendez / Cart-Duty

The Unlicense
0 stars 0 forks source link

Fix how the FPS Controller handles slopes #20

Open mauro-merconchini opened 6 years ago

mauro-merconchini commented 6 years ago

When the player is traveling up any of the ground bumps, it needs to handle the innitial hurdle of high slope. It gets stuck when heading towards them in a straight line, and can only go on top when heading in a diagonal direction.

We can fix this by either smoothing out the ramps geometry as much as possible (max of 48 smoothed sides per cylinder), making some kind of player clip, or fixing it in the FPS Controller script.

anthonymendez commented 6 years ago

The players rotation is fixed except for the Y-Axis I believe. Can you switch the players collided to a capsule or mesh collider and see if it fixed the issue?

On Fri, Jun 8, 2018 at 12:46 AM Mauro Merconchini notifications@github.com wrote:

When the player is traveling up any of the ground bumps, it needs to handle the innitial hurdle of high slope. It gets stuck when heading towards them in a straight line, and can only go on top when heading in a diagonal direction.

We can fix this by either smoothing out the ramps geometry as much as possible (max of 48 smoothed sides per cylinder), making some kind of player clip, or fixing it in the FPS Controller script.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/anthonymendez/Cart-Duty/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/ASWXwbPcXsWb0AVpeGmphUS7k03TTlHfks5t6gGSgaJpZM4UffI4 .