Is there a way to make characters use vehicle movement?

I am creating a racing game. In this game the player controls the character instead of the vehicle. The current solution is to use vehicle movement and make the vehicle invisible. Add the character’s skeletal mesh as a component of the vehicle. But I have a big problem with the animation. I can’t figure out how to use vehicle movement to make the character animated.