From 96fd63413878c5fb75f752fbb4450708bccd91cd Mon Sep 17 00:00:00 2001 From: ericrius1 Date: Mon, 12 Oct 2015 11:02:47 -0700 Subject: [PATCH] Pre- ray cast --- .../painting/whiteboard/whiteboardEntityScript.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/painting/whiteboard/whiteboardEntityScript.js b/examples/painting/whiteboard/whiteboardEntityScript.js index da2e06d397..c8e914b0e0 100644 --- a/examples/painting/whiteboard/whiteboardEntityScript.js +++ b/examples/painting/whiteboard/whiteboardEntityScript.js @@ -16,6 +16,8 @@ (function() { var _this; + var RIGHT_HAND = 1; + var LEFT_HAND = 0; Whiteboard = function() { _this = this; }; @@ -23,18 +25,20 @@ Whiteboard.prototype = { setRightHand: function() { - this.hand = 'RIGHT'; + this.hand = RIGHT_HAND; }, setLeftHand: function() { - this.hand = 'LEFT'; + this.hand = LEFT_HAND; }, startFarGrabNonColliding: function() { - this.whichHand = this.hand; + this.activeHand = this.hand; }, - continueFarGrabbingNonColliding: function() {}, + continueFarGrabbingNonColliding: function() { + var handClick = Controller.findAction(handClickString); + }, preload: function(entityID) { this.entityID = entityID;