How do I get a character's movement vector?

Apologies, let me clarify. It’s suppose to knock the player away from the lazer. In this case, the forward vector is where the player is looking, not moving. So the borked bit is you can turn around and get pushed through the lazer instead of away from it.

Is there a way to get a forward vector that represents the direction of movement instead of the direction of the camera?

I also tried getting a valid vector from the laser itself, but none of the ones I tried worked consistently and I’d really rather not have to worry about my laser’s orientation if possible.

1 Like