For New People - A quick and easy way to work out which way player is moving

Hi There

Here is a simple way I worked out to detect movement direction and how to capture it.

Make a Function:

  • Make 2 inputs - One for Forward and one for Right

Capture.JPG

  • Run a check to see if they are positive or Negatives. In this case I am just running Print Screens as testing.

Plug it in to your Move in your Player Character.

From there on, you can set Variable to run off this instead of Print Strings or anything you like.

Hope this helps

Seems kind of complicated when you could just do a dot product between the velocity and the forward vector of the actor. Interesting solution though.