Add controllable ground direction modifier setting

This commit is contained in:
fullwall 2020-04-30 23:40:40 +08:00
parent 8336fe1b7c
commit 8c1f636c19

View File

@ -27,9 +27,15 @@ public class PlayerControllerLook {
}
if (this.d) {
this.d = false;
this.a.pitch = this.a(this.a.pitch, this.g(), this.c);
this.a.aK = this.a(this.a.aK, this.h(), this.b);
this.a.yaw = this.a.aK;
this.a.pitch = this.a(this.a.pitch, this.g(), this.c);
while (this.a.aK >= 180F) {
this.a.aK -= 360F;
}
while (this.a.aK < -180F) {
this.a.aK += 360F;
}
} else {
// this.a.yaw = MathHelper.b(this.a.yaw, this.a.aK, 40F);
// this.a.aK = this.a(this.a.aK, this.a.aI, 10.0F);