Set actor location relative to direction character is facing
I am trying to make my character move forwards in a double jump type of motion. I'm using a timescale to make it smooth, basically a second degree function along the X axis. However, it uses the world x axis instead of my characters x axis (or direction chracter faces).
I'm sure this is quite an easy fix, any pointers? Here's the blueprint I have right now:
I have also tried using launch character but it ends up with the same result. I guess that is because of my timescale which only moves the character on one axis. Wondering if it is possible to make that axis local instead of world?
asked Jan 07 '19 at 10:41 PM in Blueprint Scripting
Since you want it to move along its forward direction, multiply the ActorForwardVector by the float value "Add Value" from your timeline, then add it to ActorLocation.
The vector multiplication you were doing, the Cross Product, gives you the vector perpendicular to the plane described by the two vectors, you don't need it.
answered Jan 07 '19 at 11:49 PM
you should be able to take the output of your timeline then multiply it by the actors forward vector (the node name is something like get actor forward vector) then add the result to the characters current position. also you shouldnt need the interp that you have since your using a timeline and presumably a curve in the timeline.
answered Jan 07 '19 at 10:56 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here