pocketmine\entity\Entity::getDirectionPlane PHP Method

getDirectionPlane() public method

public getDirectionPlane ( )
    public function getDirectionPlane()
    {
        return (new Vector2(-cos(deg2rad($this->yaw) - M_PI_2), -sin(deg2rad($this->yaw) - M_PI_2)))->normalize();
    }