You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine our characters is moving on the surface of a sphere. So there will be 2 ways to calculate distance between them. But all of gdx-ai behaviors use owner.getPosition() to calculate distance.
I think Steerable interface should have getDistance(point:Vector2):floatgetDistanceSq(point:Vector2):float method and behaviors will use them to decide how to seek, evade, flee...
The text was updated successfully, but these errors were encountered:
At a first glance I'd say that toTarget should be an instance of a class that extends Vector2 and overrides the appropriate methods.
But currently there's no way to set vectors internally used by behaviors.
Imagine our characters is moving on the surface of a sphere. So there will be 2 ways to calculate distance between them. But all of gdx-ai behaviors use owner.getPosition() to calculate distance.
I think Steerable interface should have
getDistance(point:Vector2):float
getDistanceSq(point:Vector2):float
method and behaviors will use them to decide how to seek, evade, flee...The text was updated successfully, but these errors were encountered: