From 6dafc654eb82042c405b20ce41ebd62eee32ae49 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 25 Feb 2016 13:19:56 -0800 Subject: [PATCH] only update heartbeat in userData of grabbed entity every 5 seconds --- examples/controllers/handControllerGrab.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index f2acfb9b47..04e93334cb 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -171,9 +171,8 @@ var STATE_WAITING_FOR_BUMPER_RELEASE = 15; var COLLIDES_WITH_WHILE_GRABBED = "dynamic,otherAvatar"; var COLLIDES_WITH_WHILE_MULTI_GRABBED = "dynamic"; -var HEART_BEAT_INTERVAL = 5; // seconds -var HEART_BEAT_TIMEOUT = 15; - +var HEART_BEAT_INTERVAL = 5 * MSECS_PER_SEC; +var HEART_BEAT_TIMEOUT = 15 * MSECS_PER_SEC; function stateToName(state) { switch (state) {