How to update the acceleration of the car (sedan) in the blueprint vehicle template during gameplay?
I'm trying to edit the vehicle supplied in the template so that when a key is held down (the E key), the acceleration of the vehicle is increased.
After watching the "2 - Tuning: Top Speed and Acceleration" official Unreal Engine tutorial video I can see that the acceleration can be altered by editing the torque curve (or the Drag Coefficient).
However I cannot find / am unsure of what nodes i should be using to edit the torque/drag inside the Sedan Blueprint as when i search for them, nothing relevant appears?
I've uploaded an image to show what i mean.
asked Nov 26 '16 at 11:26 PM in Blueprint Scripting
You can simply do this:
The Accel boolean is keeping track of if you pressed E. The IsMoving is just if you are accelerating forward. Every tick I call this HandleBoost event.
answered Nov 27 '16 at 02:14 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here