ゴーストとの接触を振動で検知する(バイブレーションの活用)

バイブレーション
using System.Threading.Tasks.Sources;
using UnityEngine;
public class VibController : MonoBehaviour
{
void OnControllerColliderHit(ControllerColliderHit hit)
{
if (hit.gameObject.CompareTag("Watch"))
{
OVRInput.SetControllerVibration(0, 0.2f, OVRInput.Controller.RTouch);
Invoke("Stop", 0.3f);
}
}
void Stop()
{
OVRInput.SetControllerVibration(0, 0f, OVRInput.Controller.RTouch);
}
}

【Unity6版】VR_Dungeon(全18回)
他のコースを見る
バイブレーション
using System.Threading.Tasks.Sources;
using UnityEngine;
public class VibController : MonoBehaviour
{
void OnControllerColliderHit(ControllerColliderHit hit)
{
if (hit.gameObject.CompareTag("Watch"))
{
OVRInput.SetControllerVibration(0, 0.2f, OVRInput.Controller.RTouch);
Invoke("Stop", 0.3f);
}
}
void Stop()
{
OVRInput.SetControllerVibration(0, 0f, OVRInput.Controller.RTouch);
}
}

ゴーストとの接触を振動で検知する(バイブレーションの活用)