This commit is contained in:
Dylan K. Taylor
2017-06-04 16:54:25 +01:00
parent 138fb88431
commit 2b02fcfe2c
4 changed files with 17 additions and 9 deletions

View File

@ -355,4 +355,12 @@ abstract class DataPacket extends BinaryStream{
$this->putLFloat($y);
$this->putLFloat($z);
}
public function getByteRotation() : float{
return (float) ($this->getByte() * (360 / 256));
}
public function putByteRotation(float $rotation){
$this->putByte((int) ($rotation / (360 / 256)));
}
}