Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        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));
        }