Start vibration on collision SteamVR

Hey guys;
The web is filled with outdated and no longer working guides and it makes me loose hours every day in wasted time an I cant find ANY guide for this that makes sense.

I am building a Sword VR game in Unity and SteamVR. I have been trying for two days to get haptic feedback when my sword destroys an enemy.

I aim to put the trigger for the haptic on my enemy script:

 GameObject[] newGOs = new GameObject[2];
            if (OptionalTargetObject == null)
            {
                newGOs[0] = Instantiate(gameObject) as GameObject;
                newGOs[0].name = gameObject.name;
                newGOs[1] = gameObject;
                NextTarget.SetActive(true);
//This is where I want the haptic command to go to give the controller a buzz.
            }

Thank you in advance! :slight_smile:

You might have more luck with this sort of API-specific question over in the VR/AR/XR board on this forum.

1 Like

Thank you. All new on this forum <3

1 Like