Launch Character doesn't consider rotation and i can't keep the capsule vertical to the ground

Hello, i’m trying to replicate the functionning of a skateboard and for this i’m trying first to launch the player when hitting a button, this is the way i’m doing it sorry if it’s not the right way it’s the solution i found on internet :

It works on the ground but when the character rotate it still launch it forward like this :

This is the first problem, i tried playing with different nodes and searching but found nothing.

But as you can see there is another problem, i’m also trying to make the character and the capsule follow the ground and for this i use a line trace, it works when i want to rotate the mesh but for some reason it stops working when i try to rotate the capsule :

This is the result i’m getting :

Thank you for your help !

1 Like

You can have a look at this project on GitHub, which includes skateboard mechanics and may provide you with useful insights.