View Single Post
Old 02-06-2002, 10:22 PM   #100
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,775
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.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline