mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
Add controllable ground direction modifier setting
This commit is contained in:
parent
8336fe1b7c
commit
8c1f636c19
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user