When the player collides with the cookie the ball / item that the player is using to collect things vibrates .
I am using the Adafruit_DRV2605.h library.
#include <Adafruit_DRV2605.h>
#include <Wire.h>
#include "Adafruit_DRV2605.h"
Adafruit_DRV2605 drv;
and adding this part to the Arduino Script to be called with Ping(4);
see more technical details here:
Mixed Reality Game in physical space / Final project breakdown (introduction )