pocketmine\entity\Entity::getDirectionPlane PHP 메소드

getDirectionPlane() 공개 메소드

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