Class GKGoal

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class GKGoal
    extends NSObject
    Since:
    Available in iOS 9.0 and later.
    • Method Detail

      • avoidObstacles

        public static GKGoal avoidObstacles​(NSArray<GKObstacle> obstacles,
                                            double maxPredictionTime)
      • avoidAgents

        public static GKGoal avoidAgents​(NSArray<GKAgent> agents,
                                         double maxPredictionTime)
      • separateFromAgents

        public static GKGoal separateFromAgents​(NSArray<GKAgent> agents,
                                                float maxDistance,
                                                float maxAngle)
      • alignWithAgents

        public static GKGoal alignWithAgents​(NSArray<GKAgent> agents,
                                             float maxDistance,
                                             float maxAngle)
      • cohereWithAgents

        public static GKGoal cohereWithAgents​(NSArray<GKAgent> agents,
                                              float maxDistance,
                                              float maxAngle)
      • reachTargetSpeed

        public static GKGoal reachTargetSpeed​(float targetSpeed)
      • wander

        public static GKGoal wander​(float speed)
      • interceptAgent

        public static GKGoal interceptAgent​(GKAgent target,
                                            double maxPredictionTime)
      • followPath

        public static GKGoal followPath​(GKPath path,
                                        double maxPredictionTime,
                                        boolean forward)
      • stayOnPath

        public static GKGoal stayOnPath​(GKPath path,
                                        double maxPredictionTime)