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"

Grappling hook not working properly

I have been trying grappling hook tutorials left and right, Nothing is working properly, I ended up with several functions, all of which end up with erratic and horrible behavior.

I started out with this, from an Attack on Titan grappling system tutorial on Youtube, The original result had the Delta time and the Get Velocity plugged in as I've crossed out, It gave me a terrible result, and the player would Zoom around uncontrollably as long as I had the button pressed.

After tweaking and breaking the crossed out links, replacing delta time with 0.25 and removing the "Get velocity" from the equation, It gave me a better result but still horrible.

And then it would maintain my momentum after I had (Finally) successfully grappled to my desired location, so that it threw me away with my previous momentum.

First tutorial (Attack on Titan Grappling System)

I tried several more until I ended up with this:

Again, with tweaking I ended up with a decent result, but the player would lose momentum the closer he gets to the hook, and when he had latched on (50 units below the hook), and when I release the button, He would still get thrown away, only this time in the opposite direction, as in he gets thrown back from where he came.

![Second Tutorial, Don't remember where

Please help, this is very frustrating, and I am unable to continue work on the game until I have this right.

Help is greatly appreciated.

Product Version: UE 4.15
Tags:
trial 1.png (172.9 kB)
trial 2.jpg (171.2 kB)
trial 2.jpg (171.2 kB)
more ▼

asked Aug 10 '17 at 12:14 PM in Blueprint Scripting

avatar image

SpectreKelevra
20 4 4 10

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

1 answer: sort voted first

I found a solution that works pretty well, after fiddling with the numbers for a while.

(Hook location - Player location) X (Get world delta seconds X 200) = Launch Velocity.

Enabled XY, and Z Overrides, and it works well.

Let me know if this has helped anyone, or if anyone has any questions.

more ▼

answered Aug 10 '17 at 06:59 PM

avatar image

SpectreKelevra
20 4 4 10

(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