`-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 lowmaxPredictionTime
(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
Go Back to View Controller from Skscene
Objc Protocol Implementation in Swift
Populating Input Text Field in Wkwebview
My App Is Getting Crashed on UIdocumentpickerviewcontroller
Customize Google Maps Blue Dot for Current Location
Googlemap API Gives Wrong Coordinates for Direction Between Two Points
iOS 11 CPU Throttling and Idle Timer
Terminating App Due to Uncaught Exception 'Nsinvalidargumentexception' - iOS Google Sign In
How to Get a Low Res Image, or Thumbnail from the Alassetrepresentation in Swift
How to Queue Multiple Accessibility Notifications for Voiceover
Paste Formatted Text, Not Images or HTML
Update Responsejson to Responsedecodable in Swift
How to Bind Multiple Observers to One Controlproperty
Xcode 8/Swift 3 and Installing Apps on iPhone 4 Running iOS 7
Core Data Nstimeinterval Using an Accessor Directly Is Buggy
iOS 8 [Uiapplication Sharedapplication].Scheduledlocalnotifications Empty