better spatialkey

This commit is contained in:
James B. Pollack 2015-11-18 10:41:53 -08:00
parent eb48342d07
commit de953ce14d

View file

@ -12,8 +12,8 @@
Script.include("../../libraries/utils.js");
var WAND_MODEL = 'http://hifi-public.s3.amazonaws.com/models/bubblewand/wand.fbx';
var WAND_COLLISION_SHAPE = 'http://hifi-public.s3.amazonaws.com/models/bubblewand/actual_no_top_collision_hull.obj';
var WAND_MODEL = 'http://hifi-content.s3.amazonaws.com/james/bubblewand/wand.fbx';
var WAND_COLLISION_SHAPE = 'http://hifi-content.s3.amazonaws.com/james/bubblewand/wand_collision_hull.obj';
var WAND_SCRIPT_URL = Script.resolvePath("wand.js");
@ -48,8 +48,8 @@ var wand = Entities.addEntity({
grabbableKey:{
invertSolidWhileHeld:true,
spatialKey:{
relativePosition:{x:0,y:1,z:0},
relativeRotation:Quat.fromPitchYawRollDegrees(0,90,0)
relativePosition:{x:0,y:0.1,z:0},
relativeRotation:Quat.fromPitchYawRollDegrees(0,0,90)
}
}
})