How can I give the "Launch Character" node an accelerating velocity?
I'm trying to use the Launch Character node, and I've set the velocity to (Desired location vector - Current location vector) * 6.
The 6 being Trial and error.
However, that gives me a very quick and jarring snap into motion, and then decelerating as you get closer to the desired location.
How can I make it accelerate into motion, and keep the final deceleration?
asked Aug 16 '17 at 12:03 AM in Blueprint Scripting
Launch character is made to instantly accelerate in a direction to simulate jumping, etc. It also uses the Character movement system so it's not exactly physics so i am not sure of the best way to handle this.
That being said, try to launch the character with less velocity and increment that velocity for a length of time. Unless there is some odd reset logic this should work as the Launch function adds velocity instead of setting it.
So to test, make a timeline that over 3 seconds outputs a value of 0 - 1. Then multiply the ouput of the timeline by some small number like .01 or .1 (just a guess) and plug that multiply into a Launch Character node. You will probably need a smallish number as you will be adding to the velocity every "tick" of the timeline so it may get large fast. This SHOULD feel like acceleration, then just stop adding and let the decel happen naturally. Adjust the multiply to increase accel and change timeline length to adjust time before decel.
answered Aug 16 '17 at 02:31 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here