Jump to content

  • Log In with Google      Sign In   
  • Create Account


Seek Steering Behavior with Target Direction for Group of Fighters


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 SebastianStehle   Members   -  Reputation: 102

Like
0Likes
Like

Posted 03 August 2013 - 02:29 AM

I am implementing steering algorithms with group management for spaceships (fighters). I select a leader and assign the target positions for the other spaceships based on the target position of the leader and an offset. This works well. But when my spaceships arrive they all have a different direction. I want them to look at the same direction (target - start).

I also want to combine this behavior with a minimum turning radius that is based on the speed. The only idea I have is to calculate a path for each spaceship with a point before the target position, so the ships have some time left to turn into the right position. But I dont know if this is a good idea. I guess there will be a lot of rare cases where this can cause a problem.

So the question is, if anybody knows how to solve this problem and has some (simple code) or pseudocode for me or at least some good explanation.

 

I found this article: http://www.gamasutra.com/view/feature/131505/toward_more_realistic_pathfinding.php?page=4, and the curves show exactly what I want (besides the stuff with the dynamic turn radius), but I have no idea how to combine this with steering and unfortunatly the code is not available anymore.



Sponsor:

#2 ApochPiQ   Moderators   -  Reputation: 14622

Like
0Likes
Like

Posted 03 August 2013 - 11:55 PM

Take a look at the alignment steering force - it should do what you want for keeping your units moving in a consistent direction.

Enforcing a turning radius is just a matter of clamping your steering forces correctly in most cases.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS