The previous way that the apex of a trajectory is calculated is using the linear interpolation of the old and new y-coordinates. This is only accurate if the object has a constant velocity, so will not correctly model the y-position of the apex. We can improve this by using a quadratic function with the dtToApex value.
Note: This will an approximation if air resistance is turned on, just like all of the other calculations in the step function.
The previous way that the apex of a trajectory is calculated is using the linear interpolation of the old and new y-coordinates. This is only accurate if the object has a constant velocity, so will not correctly model the y-position of the apex. We can improve this by using a quadratic function with the dtToApex value.
Note: This will an approximation if air resistance is turned on, just like all of the other calculations in the step function.