1, vuforiaをインポートし、ライセンスキーまで設定する
3, オブジェクトを作成し、子オブジェクトにする。サイズやマテリアルを設定する。
6, PlaneFinderのAnchorStageにGroundPlaneStageを設定する
7, DuplocateStageのチェックを外すと1つのオブジェクトのみ設置することができる
車の実装
1, 車を配置する
2、StandardSurfaceShaderを選択し、Shaderを作成する
4、マテリアルのStandard→Custum→ARShadowを選択する
7、ProjectSettingを開き、CloseFitにする
9、ProjectSettingを開き、IOS,アンドロイドのQualityを調整する
10、ビルドする
ヘリコプターの実装
4、MidAirPositionerにMidAirStageをアタッチして、チェックを外す
5、RotorScriptを作成する
RotorScript
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotorScript : MonoBehaviour
{
public int yv;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
Vector3 vect = new Vector3(0, yv, 0);
transform.Rotate(vect * Time.deltaTime);
}
}