Look more often even if target hasn't moved much

This commit is contained in:
fullwall 2020-09-16 21:58:15 +08:00
parent 0db8f37eeb
commit 8c1b51da98
8 changed files with 8 additions and 8 deletions

View File

@ -59,7 +59,7 @@ public class PlayerControllerLook {
public void a(double d0, double d1, double d2, float f, float f1) {
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
if (d < 0.01) {
return;
// return;
}
this.e = d0;
this.f = d1;

View File

@ -59,7 +59,7 @@ public class PlayerControllerLook {
public void a(double d0, double d1, double d2, float f, float f1) {
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
if (d < 0.01) {
return;
// return;
}
this.e = d0;
this.f = d1;

View File

@ -59,7 +59,7 @@ public class PlayerControllerLook {
public void a(double d0, double d1, double d2, float f, float f1) {
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
if (d < 0.01) {
return;
// return;
}
this.e = d0;
this.f = d1;

View File

@ -60,7 +60,7 @@ public class PlayerControllerLook {
public void a(double d0, double d1, double d2, float f, float f1) {
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
if (d < 0.01) {
return;
// return;
}
this.e = d0;
this.f = d1;

View File

@ -47,7 +47,7 @@ public class PlayerControllerLook {
public void a(double var0, double var2, double var4, float var6, float var7) {
double d = Math.pow(this.e - var0, 2) + Math.pow(this.f - var2, 2) + Math.pow(this.g - var4, 2);
if (d < 0.01) {
return;
// return;
}
this.e = var0;
this.f = var2;

View File

@ -52,7 +52,7 @@ public class PlayerControllerLook {
public void a(double var0, double var2, double var4, float var6, float var7) {
double d = Math.pow(this.e - var0, 2) + Math.pow(this.f - var2, 2) + Math.pow(this.g - var4, 2);
if (d < 0.01) {
return;
// return;
}
this.e = var0;
this.f = var2;

View File

@ -52,7 +52,7 @@ public class PlayerControllerLook {
public void a(double var0, double var2, double var4, float var6, float var7) {
double d = Math.pow(this.e - var0, 2) + Math.pow(this.f - var2, 2) + Math.pow(this.g - var4, 2);
if (d < 0.01) {
return;
// return;
}
this.e = var0;
this.f = var2;

View File

@ -60,7 +60,7 @@ public class PlayerControllerLook {
public void a(double d0, double d1, double d2, float f, float f1) {
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
if (d < 0.01) {
return;
// return;
}
this.e = d0;
this.f = d1;