pocketmine\entity\Entity::setRotation PHP Method

setRotation() public method

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