extern void object::Move( )
{
	int     list[], i; // liste des objets cherchés
	object  item;

	errmode(0);  // ne stoppe pas si erreur
	while ( ismovie() != 0 )  wait(1);

	i = 0;
	list[i++] = Traject;

	while ( true )
	{
		item = radar(list, 0, 180, 2, 1000);
		if ( item == null )  break;
		go(item.position, 0.8, 0.1);
	}
}

void object::go(point target, float speed, float delay)
{
	float   power;

	power = direction(target)/90;
	speed *= 1-power*5;
	if ( speed < 0.5 )  speed = 0.5;
	if ( speed > 1.0 )  speed = 1.0;

	if ( power > 0 )
	{
		motor(speed-power, speed);
	}
	else
	{
		motor(speed, speed+power);
	}
	wait(delay);
}
