enemy walking around world

This commit is contained in:
Remco
2016-06-03 13:58:07 +02:00
parent b827885f40
commit 293ceb0b9f
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ void Enemy::update(float delta)
dz = target.z - position.z;
length = sqrt(dx*dx + dz*dz);
if (length > 0.03)
if (length > 1)
{
dx /= length;
dz /= length;