
答案
void DoLineofSightChase( )
{
Vector u, v;
bool left = false;
bool right= false;
u = VRotate2D(-Predator.fOrientation, (Prey.vPosition -
Predator.vPosition));
u.Normalize();
if(u.x < -_TOL)
left = true;
else if(u.x > _TOL)
right = true;
Predator.SetThrusters(left,right);
}