How can i calculate my character's current direction of movement?
In my context i'm making a unique grappling hook, i am able to check for if i am currently moving away from the specific point and reel in the grapple but i want to be able to make it so that when moving away from the grapple location is true it launches the character in the opposite direction of current movement. the way I've tried to test doing this is on event tick draw debug line with line start being actor location and line end being 'ActorLocation' multiplied by 'Getvelocity' which show the line do all sorts of directions. I need to be able to find the vector of current movement regardless what direction my character is facing.
The way i need to implement this is to apply a force to the character that is in the opposite direction of current movement to slow the character down if they are currently moving away from the anchor point, any help is appreciated. Thanks
I have finally sorted this by using get velocity multiplied by -0.2 and increased the time between each launch using a looping delay node with a branch for smooth movement.
answered Sep 29 '18 at 09:19 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here