From eb48342d07da948743c91626a9d0e98ba640dcd5 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Wed, 18 Nov 2015 09:10:04 -0800 Subject: [PATCH] add inversiona nd spatialkey --- examples/toybox/bubblewand/createWand.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/toybox/bubblewand/createWand.js b/examples/toybox/bubblewand/createWand.js index 4f4bc39e2c..a0e6ce5918 100644 --- a/examples/toybox/bubblewand/createWand.js +++ b/examples/toybox/bubblewand/createWand.js @@ -43,5 +43,14 @@ var wand = Entities.addEntity({ //must be enabled to be grabbable in the physics engine collisionsWillMove: true, compoundShapeURL: WAND_COLLISION_SHAPE, - script: WAND_SCRIPT_URL + script: WAND_SCRIPT_URL, + userData:JSON.stringify({ + grabbableKey:{ + invertSolidWhileHeld:true, + spatialKey:{ + relativePosition:{x:0,y:1,z:0}, + relativeRotation:Quat.fromPitchYawRollDegrees(0,90,0) + } + } + }) }); \ No newline at end of file