Пример #1
0
        public CCPoint GetWorldPosition(float hexRadius, float hexMargin)
        {
            var startPos   = CurrentNode.GetWorldPosition(hexRadius, hexMargin);
            var nextPos    = NextNode.GetWorldPosition(hexRadius, hexMargin);
            var deltaPos   = nextPos - startPos;
            var interpoled = deltaPos * Progress;

            return(startPos + interpoled);
        }