Показать сообщение отдельно
Старый 23.08.2007, 03:11
aQuestion вне форума Посмотреть профиль Найти все сообщения от aQuestion
  № 15  
Ответить с цитированием
aQuestion
Banned
 
Аватар для aQuestion

Регистрация: Dec 2005
Сообщений: 556
замени
Код:
		this.xmov = bot_speed*Math.cos(ang);
		this.ymov = bot_speed*Math.sin(ang);
		this._x += this.xmov;
		this._y += this.ymov;
на
Код:
		this.xmov = bot_speed*Math.cos(ang*Math.PI/180);
		this.ymov = bot_speed*Math.sin(ang*Math.PI/180);
		this._x -= this.xmov;
		this._y -= this.ymov;