public function setRotation($yaw, $pitch) { $this->yaw = $yaw; $this->pitch = $pitch; $this->scheduleUpdate(); }