Inherit GKGoal or GKBehavior

Hello there,


I've been playing with Agents, Goals & Behaviors ecosystem and I must admit it's great so far (really time saving).


I'd like to add a "behavior" to some of my entities: make them go in one direction, and once an obstacle has been hit, bounce in the other direction (like in the old 80's games). I know how to do this the classical way - using physics or not - but I was wondering if trying to implement it using the Agents and/or Pathfinding system is a good or bad choice here? Any advice?


Thanks!

As far as I know, you can't really inherit from either. I mean, you can, but the internal circuitry by which the behavior gets each goal's direction/speed/etc. and weights them is undocumented.

Inherit GKGoal or GKBehavior
 
 
Q