PonderSlime / Planet-Earth-Stranded

MIT License
3 stars 1 forks source link

Add proper walking speed based on animation walking #2

Closed techy-robot closed 1 month ago

techy-robot commented 1 month ago

This is a fix to #1. Currently, it only affects the walking speed, since other animations like running do not work (I have tried). The player movement matches exactly with the movement of the feet in the animation, using the point closest in contact with the ground to control the speed. Note that there is a better way to implement proper walking speed, called Root motion (A good video I found on the topic: https://www.youtube.com/watch?v=fq0hR2tIsRk). This is only a quick fix.

techy-robot commented 1 month ago

Merge conflicts have been fixed. I am currently working on re-selecting the skeleton in godot editor, because I didn't want to touch the scene file in plain text.

techy-robot commented 1 month ago

Okay, walking code is now working properly. The grapple code has been removed for testing purposes, since this seems to be a non-working feature. @PonderSlime, are we good to merge this?