VibrateController

public void TrackingControllerMotion(float time);

Description

using UnityEngine;
using Volplane;

[RequireComponent(typeof(Rigidbody), typeof(Collider))]
public class Demo : VolplaneBehaviour
{
    public int playerId = 0;            // Player identifier

    // On collision occurs
    void OnCollisionEnter(Collision col)
    {
        // Vibrate controller for 400ms
        GetPlayer(playerId).VibrateController(playerId, 0.4f);
    }
}

Vibrates the controller from this player for a specific amount of time. Maximum time is 10 seconds.

 

time The vibrate-duration in seconds.