Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AR超入門

yuhi
May 04, 2019

 AR超入門

yuhi

May 04, 2019
Tweet

More Decks by yuhi

Other Decks in Technology

Transcript

  1. 今回使用するもの • Unity 2018 https://unity3d.com/jp/get-unity/download • AndroidStudio https://developer.android.com/studio/?hl=ja • JavaDevelopmentKit

    https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads- 2133151.html • ARcore SDK for Unity https://github.com/google-ar/arcore-unity-sdk/releases • ARcore 対応端末 https://qiita.com/namiwavess/items/088605ffdd9062d57bd8
  2. Assets/GoogleARcore/Examples/HelloAR/Scripts からHelloARController.csを書き換える private bool TappedCheck = false; if(TappedCheck==false){ var andyObject

    = Instantiate(prefab, hit.Pose.position, hit.Pose.rotation); andyObject.transform.Rotate(0, k_ModelRotation, 0, Space.Self); var anchor = hit.Trackable.CreateAnchor(hit.Pose); andyObject.transform.parent = anchor.transform; TappedCheck = true; } else{ return; } タップ判定を追加して 一回しかobjectを出せなくする