Olezen / UnitySourceMovement

Source engine-like movement in Unity, based on Fragsurf by cr4yz (Jake E.).
MIT License
310 stars 47 forks source link

Slow movement moving up slopes FIXED (Sorta) #21

Open PapersTheKingOfPapers opened 2 years ago

PapersTheKingOfPapers commented 2 years ago

Walking up a sloped surface is slow and sluggish, don't have any ideas on how to fix it, anyone else encounter this issue?

PapersTheKingOfPapers commented 2 years ago

Ok, I got some sort of fix set up,

it changes this _surfer.moveData.velocity.y = yVelocityNew (_wishDir.y < 0f ? 1.2f : 1.0f); into this _surfer.moveData.velocity.y = yVelocityNew (_wishDir.y < 0f ? 1.2f : 1.1f);

Line 232 of SurfController.cs the 1.0f is too low of a multiplier to give a good speed value when going up ramps n such.