From 3d18edd9d10f646d08ae954a367a2e2b2b1272cf Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Fri, 18 Sep 2015 15:13:09 -0700 Subject: [PATCH] update detectGrabExample.js --- examples/entityScripts/detectGrabExample.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/examples/entityScripts/detectGrabExample.js b/examples/entityScripts/detectGrabExample.js index c84d3250cc..7e97572159 100644 --- a/examples/entityScripts/detectGrabExample.js +++ b/examples/entityScripts/detectGrabExample.js @@ -23,16 +23,27 @@ DetectGrabbed.prototype = { - distanceHolding: function () { - print("I am being distance held... entity:" + this.entityID); + setRightHand: function () { + print("I am being held in a right hand... entity:" + this.entityID); + }, + setLeftHand: function () { + print("I am being held in a left hand... entity:" + this.entityID); }, - closeGrabbing: function () { + startDistantGrab: function () { + print("I am being distance held... entity:" + this.entityID); + }, + continueDistantGrab: function () { + print("I continue to be distance held... entity:" + this.entityID); + }, + + startNearGrab: function () { print("I was just grabbed... entity:" + this.entityID); }, - continueCloseGrabbing: function () { + continueNearGrab: function () { print("I am still being grabbed... entity:" + this.entityID); }, + release: function () { print("I was released... entity:" + this.entityID); },