x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: Not Selected
Tags:
more ▼

asked Sep 29 '18 at 09:04 AM in Blueprint Scripting

avatar image

LordRicroar
1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Sep 29 '18 at 09:19 AM

avatar image

LordRicroar
1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question