public static bool CanSee(EntityInfo source, EntityInfo target)
{
bool ret = false;
if (null != source && null != target) {
Vector3 pos1 = source.GetMovementStateInfo().GetPosition3D();
Vector3 pos2 = target.GetMovementStateInfo().GetPosition3D();
float distSqr = GameFramework.Geometry.DistanceSquare(pos1, pos2);
return CanSee(source, target, distSqr, pos1, pos2);
}
return ret;
}