public void VibrateController(int playerId, float time);
public void VibrateController(VPlayer player, float time);


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
        VibrateController(playerId, 0.4f);

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


playerId The player identifier.
player A player object.
time The vibrate-duration in seconds.