Saturday, July 23, 2016

Unreal Engine 4 Velocity From Distance + Gravity

Unreal Engine 4 Velocity From Distance + Gravity

Currently i just set the velocity for my jumppad blueprint directly in a variable - but i want it much easier to configure in the editor.

So i am trying to make a way to set just the distance from the starting point, so i can calculate a velocity to reach exactly the end point (start point + distance * direction).

 

Normally its easy, you just take the distance and multiply it by the timestep, but this wont work when there is gravity.

So my question is, how do i include gravity into this equation?


No comments:

Post a Comment