Reputation: 11
How can i merge all the behaviors in one entity?
for example an entity wandering for a limited time or distance then change its behavior to arrive.... I'm debugging it for weeks but suddenly i failed :( can someone help me fix my issue? :)
here's a link for the source code :) i've downloaded it on the net itself - SourceCode
Upvotes: 1
Views: 2072
Reputation: 47749
I'd suggest reviewing and studying the original paper by Craig Reynolds which describes the steering behaviors, and how to "merge" them. It includes reference to an open source C++ implementation called OpenSteer:
http://www.red3d.com/cwr/steer/
Specifically, I assume that you are referring to the Flocking behaviors, which combine: Separation, Alignment, and Cohesion.
Upvotes: 2