I'm trying to create a short intense vibration of the Touch Controller when the player's hands collide with a game object. I'm using this code but changing the freqency value doesn't seem to affect the duration. Anyone have any ideas?
The documentation says that you should call this method periodically, and that the vibration lasts for a maximum of 2.5 seconds. So I think it's up to you manage the duration, calling this method when the vibration have to start and also when the vibration have to stop (frequency = 0 will disable the vibration). And if you want a longer duration than 2.5 seconds, you have to call the method periodically to maintain the vibration active.
The documentation says that you should call this method periodically, and that the vibration lasts for a maximum of 2.5 seconds. So I think it's up to you manage the duration, calling this method when the vibration have to start and also when the vibration have to stop (frequency = 0 will disable the vibration). And if you want a longer duration than 2.5 seconds, you have to call the method periodically to maintain the vibration active.