blueprint

Gravitar Ship Thrusting and Acceleration

  • Exposure: public
  • UE Version: 5.0

EmilsMozga

December 12, 2022, 10:18 pm

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.

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v