2019年4月9日 星期二

8ㄍ VR實境課週記 Week08


Week 08

Step 01 編譯器環域更新


Step 02 封包確認認識









確認球跟軌道的感應碰觸

Step 03 觸擊把手按鍵產生文字




using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class sss : MonoBehaviour
{
    public GameObject myBall;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    float x=0;
    void Update()
    {
        myBall.transform.position = new Vector3(x,0,0);
        x+=0.01f;
    }
    private void OnTriggerEnter(Collider other)
    {
        print("touch");       
    }

}
////目前有問題


沒有留言:

張貼留言