blueprint
Gravitar Ship Thrusting and Acceleration
- Exposure: public
- UE Version: 5.0
Input Boolean IsThrusting is set to true if the input for acceleration is pressed, and false when released.
If IsThrusting returns true, a Vector variable, ThrustDirection, is set to the Actor's Arrow Component converted into a Vector.
There is a duplicate tick event that constantly applies force towards ThrustDirection, but the force is determined by the IsThrusting Boolean converted into a Float - so the value is either 1 or 0.
ctrl + v