Example #1
0
        // In Degrees: Angle of Starting Degree, Distance from Start, Rotation Lerp, Speed that Spiral Grows
        public static Vector2 SpiralStep(float startingDegree, float startDist, float rotationLerp, float growLerp, int step = 0)
        {
            float curDegree = Degrees.Normalize(startingDegree + (rotationLerp * step));
            float curDist   = startDist + (growLerp * step);

            // Get Coordinates
            float x = Degrees.GetXFromRotation(curDegree, curDist);
            float y = Degrees.GetYFromRotation(curDegree, curDist);

            return(new Vector2(x, y));
        }