예제 #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));
        }
예제 #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));
        }
예제 #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));
        }