setting dimensions for rave stick

This commit is contained in:
ericrius1 2015-12-16 16:18:57 -08:00
parent 6a77ae5db2
commit 263557cc1a
2 changed files with 3 additions and 1 deletions

View file

@ -27,12 +27,13 @@ LightBall = function(spawnPosition) {
blue: 150 blue: 150
}, },
collisionsWillMove: true, collisionsWillMove: true,
gravity: {x: 0, y: -.5, z: 0},
userData: JSON.stringify({ userData: JSON.stringify({
grabbableKey: { grabbableKey: {
spatialKey: { spatialKey: {
relativePosition: { relativePosition: {
x: 0, x: 0,
y: .7, y: .1,
z: 0 z: 0
} }
}, },

View file

@ -8,6 +8,7 @@ RaveStick = function(spawnPosition) {
modelURL: modelURL, modelURL: modelURL,
position: spawnPosition, position: spawnPosition,
shapeType: 'box', shapeType: 'box',
dimensions: {x: 0.17, y: 0.48, z: 0.17},
userData: JSON.stringify({ userData: JSON.stringify({
grabbableKey: { grabbableKey: {
invertSolidWhileHeld: true invertSolidWhileHeld: true