* false = yaw / 360 / 0.0039062
* true = yaw * @var boolean */ public $rawYaw = false; public function pid(){ return ProtocolInfo::ROTATE_HEAD_PACKET; } public function decode(){ $this->get(7); //id + data $this->eid = $this->getInt(); $this->yaw = $this->getByte(); } public function encode(){ $this->reset(); $this->putInt($this->eid); $this->putByte($this->rawYaw ? $this->yaw : ($this->yaw / 360 / 0.0039062)); //wraps 360 angle to 0xff } }