tweaks to headYaw rotation, so it should be nearly perfect now

This commit is contained in:
GameHerobrine 2023-02-23 00:04:25 +03:00
parent a5a0c0e000
commit e4d1898613
5 changed files with 26 additions and 16 deletions

View file

@ -23,7 +23,7 @@ class RotateHeadPacket extends RakNetDataPacket{
public function encode(){
$this->reset();
$this->putInt($this->eid);
@$this->putByte($this->rawYaw ? $this->yaw : $this->yaw / 360 / 0.0039062); //dont ask me why does chr count float TODO find a better way
$this->putByte($this->rawYaw ? $this->yaw : ($this->yaw / 360 / 0.0039062)); //wraps 360 angle to 0xff
}
}