Example #1
0
        public HalfEdge Init(Edge edge, Side? side)
        {
            Edge = edge;
            LeftOrRight = side;
            NextInPriorityQueue = null;
            Vertex = null;

            return this;
        }
Example #2
0
 public void ReallyDispose()
 {
     EdgeListLeftNeighbor = null;
     EdgeListRightNeighbor = null;
     NextInPriorityQueue = null;
     Edge = null;
     LeftOrRight = null;
     Vertex = null;
     pool.Push(this);
 }
Example #3
0
        public void Dispose()
        {
            if (EdgeListLeftNeighbor != null || EdgeListRightNeighbor != null)
                return;

            if (NextInPriorityQueue != null)
                return;

            Edge = null;
            LeftOrRight = null;
            Vertex = null;
            pool.Push(this);
        }
    public bool StartLerp(Cell source, Cell dest, float speed, Side? s = null)
    {
        bool available = dest.Reserve() && dest != null;
        if (available)
        {
            isMoving = true;
            StartPos = source.WorldPos();
            destination = dest;
            tempSpeed = speed;
            currentLerp = 0f;

            currentRot = transform.eulerAngles;
            targetRot = s;

        }
        return available;
    }