Create increase in movement velocity relative to the orientation of the player's camera and their direction of movement

Video: Screen Recording 2025-03-13 at 3.05.37 PM
Hey everyone! It has been a long time since I have used Playcanvas, but I decided to give it another go. In this project, I am trying to create a fun unique movement system where when the character is looking sideways or at an angle somewhat perpendicular to the direction they are moving in and they are in the air, they get a small boost in velocity or slightly higher velocity dampening value to give them a boost in momentum. I know the video attached is not amazing, but the idea is that when the character looks sideways while jumping like demonstrated in the video, they obtain the boost. I thought that there might be a way to implement this into my character controller script (or another script attached to the one with the character controller through the script component). Thank you for any suggestions or ideas, and your time!

P.S. the character controller script I am using is the one that comes default in the fps template. I found that through increasing the value in velocity dampening, there is a large boost in momentum as the velocity is not as dampened.

If you give me access to what you’re working on, I could try to do so.

https://playcanvas.com/project/1315187/overview/-