Download

Smoothly accelerate through air

Hey guys, I implemented a hook shot mechanic in my sidescroller. The player aims where he wants to shoot and click it fires, if it collides it pulls the player. The problem is that I use launch character and my launch velocity is whatever point the line trace hits meaning if I shoot to close object I go slow but if I shoot to a far object I move really fast. While the grappling hook is moving the player I would prefer for the speed always to be constant and smooth, similar to Ocarina of Time:

I specifically remember no matter the distance of the shot, link will always move at a consistent smooth velocity whilst in the air which is exactly what I want, I just don’t know how to add the functionality.

Here is what I have:

1aa76b7f98a8b6bbf660b8e0916ebbfdd8505455.png

Try normalizing your direction vector and multiplying it by a fixed value.

Thanks that worked!