waypoint creation on the fly?

Blitz3D Forums/Blitz3D Programming/waypoint creation on the fly?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Common waypoint calculation algorythms take a lot of cpu time. In a dogfight with multiple flying objects even more.

I would start this way: Let'em fly around randomly in nice curves. Then make them check what's just in front of them, using linepick. If there is danger of collision, they may steer in order to prevent a collision more or less intelligent. The easiest way is to simple steer to one side.

There may still be a risk for them to crash in a more complex situation, but this probably is going to feel kind of realistic.