-Costtonode:' Not Sent to Gkgraphnode2D Subclass in Gameplaykit

`-costToNode:` Not Sent to GKGraphNode2D Subclass in GameplayKit

Apple responded to my developer support ticket related to this issue and told me it was a known issue, and that there was a potential fix in the iOS SDK 9.2 beta 2, released November 3, 2015. I verified that the tests in my test project pass in 9.2b2, and so I expect that version to resolve this issue.

GKGraph Incorrectly Calculates Path with GKGraphNode2D-Subclassed Nodes

As of Xcode 8.0 beta 1 (8S128d) and iOS 10 beta 1 (14A5261v), this issue seems to be resolved.

GKGridGraphNode with custom traversal cost

I had a similar question, and I used one of my Apple developer support tickets to try to get an answer.

Apple responded and told me it was a known issue, and that there was a potential fix in the iOS SDK 9.2 beta 2, released November 3, 2015. I verified that the tests in my test project pass in 9.2b2, and so I expect that version to resolve this issue.

GameplayKit GKPolygonObstacle Not Working With GKGoal

This is a very strange / simple answer, and I'm afraid I now have the obstacles being avoided (more than not at least..) by the enemy.

  • Giving the GKGoal for avoiding obstacles a very low maxPredictionTime (t < 10) seems to make the agent ignore the obstacles completely. Any prediction time of 10 or greater + a weight of 100+ seems to cause correct behavior.


Related Topics



Leave a reply



Submit