//Check if the entire path can be applied
    public bool IsPossible(CapsuleTransform a_Transform)
    {
        CapsuleTransform transform  = a_Transform.CreateCopy();
        bool             isPossible = true;

        for (int i = 0; i < m_PathNodes.Count; i++)
        {
            if (m_PathNodes[i].CanApplyEntireMovement(transform))
            {
                m_PathNodes[i].ApplyEntireMovement(transform);
            }
            else
            {
                return(false);
            }
        }
        return(isPossible);
    }
Example #2
0
 //Get a copy if edits need to be made but not applied to the collider (in case of checking a movement for example)
 public CapsuleTransform GetCapsuleTransformCopy()
 {
     CheckForUpdatedPosition();
     return(m_CapsuleTransform.CreateCopy());
 }