手機跟theta360配對

拍攝照片匯入Unity


環繞音效(方塊跑聲音由遠到近)
spatial blend 可調大點點才會比較有效果
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class mysound : MonoBehaviour
{
// Start is called before the first frame update
public GameObject aaa;
float angle=0;
float len;
void Start()
{
len=1000;
}
// Update is called once per frame
void Update()
{
aaa.transform.position = new Vector3(len*Mathf.Cos(angle), 1, len*Mathf.Sin(angle));
angle += 0.01f;
}
}
沒有留言:
張貼留言