タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

unityとcompassに関するpigshapeのブックマーク (1)

  • UnityでiOSのコンパスにアクセスする - Qiita

    Inputクラスからコンパスの向きを検出できる。よく似た機能のGPSとは使い方が違うのでハマってしまった。 GPSの場合は公式のサンプルにもあるようにLocationService.Startを呼び、タイムアウトなどを扱う事で緯度経度にアクセスできるという仕組み。 LocationService.Start function Start () { // First, check if user has location service enabled if (!Input.location.isEnabledByUser) return; // Start service before querying location Input.location.Start (); // Wait until service initializes var maxWait : int = 20; wh

    UnityでiOSのコンパスにアクセスする - Qiita
  • 1