PathfindingExtraConstraint

C++
struct PathfindingExtraConstraint {
  enum EExtraConstraintType {
    ECT_MAXCOST,
    ECT_MINDISTFROMPOINT,
    ECT_AVOIDSPHERE,
    ECT_AVOIDCAPSULE
  };
  EExtraConstraintType type;
  union UConstraint {
    struct SConstraintMaxCost {
      float maxCost;
    };
    struct SConstraintMinDistFromPoint {
      float px, py, pz;
      float minDistSq;
    };
    struct SConstraintAvoidSphere {
      float px, py, pz;
      float minDistSq;
    };
    struct SConstraintAvoidCapsule {
      float px, py, pz;
      float qx, qy, qz;
      float minDistSq;
    };
    SConstraintMaxCost maxCost;
    SConstraintMinDistFromPoint minDistFromPoint;
    SConstraintAvoidSphere avoidSphere;
    SConstraintAvoidCapsule avoidCapsule;
  };
  UConstraint constraint;
};
File

IPathfinder.h

Members
Members
Description
float minDistSq;
Can't use Vec3 as it has a constructor.
float minDistSq;
Can't use Vec3 as it has a constructor.