It seems that you’re trying to tackle something quite different. Character movement varies dramatically from a sliding box that simulates physics.
Consider opening a new thread and provide as much info as you can:
- the purpose and the overall idea of how things are supposed to work
- what is not working
- what you’ve tried
- ideal behaviour
Meanwhile, have a look at this post / thread:
Perhaps it will help you get closer to what’s needed.