Closed CarrotKutay closed 4 years ago
The issue with slopes and uneven surfaces are, that the velocity force given to the player during movement is applied only two-directional in 2D space. Once we encounter slopes the force will still be applied the same way (two dimensional), even though the player would need a three dimensional force to be applied (additionally up or down).
There is an issue with the upwards movement force calculated during movement, as the force is too much and the player jumps up way to high when moving up slopes (same thing probably happens on walking down slopes, but as the player can't fall through the floor the result seems to be working when walking 'downhill'
'weird' upwards movement force is still persisting, even though collision system works as intended and a condition is matched to allow upwards movement only in case of entity colliding with something
Opening new issue for it
this issue will need a lot more work. Movement on uneven surfaces requires of the object to have:
Movement on Slopes and uneven surfaces
For this feature we will probably need the following feature:
For now lets test with the existing system on how it will need to be changed to work more realistically considering uneven surfaces.