Darrell - at the moment, I'm using Magnitude() to determine the distance between the two objects, then adjusting the speed, turn, and pitch of the fish depending on whether they are coming toward each other, overtaking, etc.
Regarding the coral avoidance, your idea of keeping the inboard pectoral fin on the Lionfish folded in (at least partially) during the turn is a pretty good one. It could easily be implemented by juggling the min/max angles for the fins. I'll look into that.
|