public static Vector3 DrawPos_Decelerate(Vector3 center, int ticksToImpact, float angle, float speed) { ticksToImpact = Mathf.Max(ticksToImpact, 0); float dist = (float)(ticksToImpact * ticksToImpact) * 0.00721f * speed; return(SkyfallerDrawPosUtility.PosAtDist(center, dist, angle)); }
public static Vector3 DrawPos_Accelerate(Vector3 center, int ticksToImpact, float angle, float speed) { ticksToImpact = Mathf.Max(ticksToImpact, 0); float dist = Mathf.Pow((float)ticksToImpact, 0.95f) * 1.7f * speed; return(SkyfallerDrawPosUtility.PosAtDist(center, dist, angle)); }
public static Vector3 DrawPos_ConstantSpeed(Vector3 center, int ticksToImpact, float angle, float speed) { ticksToImpact = Mathf.Max(ticksToImpact, 0); float dist = (float)ticksToImpact * speed; return(SkyfallerDrawPosUtility.PosAtDist(center, dist, angle)); }