Adjusted relative hand grab data for gun, ping ponger, and bow to to optimize for owen grabbing

This commit is contained in:
ericrius1 2016-01-13 11:06:29 -08:00
parent 6f85ee135f
commit 0a371e4b75
2 changed files with 35 additions and 20 deletions

View file

@ -300,12 +300,17 @@
userData: JSON.stringify({ userData: JSON.stringify({
grabbableKey: { grabbableKey: {
spatialKey: { spatialKey: {
relativePosition: { rightRelativePosition: {
x: 0, x: 0.03,
y: 0, y: 0,
z: 0 z: -0.085
}, },
relativeRotation: Quat.fromPitchYawRollDegrees(45, 90, 0) leftRelativePosition: {
x: -0.03,
y: 0,
z: -0.085
},
relativeRotation: Quat.fromPitchYawRollDegrees(100, 90, 0)
}, },
invertSolidWhileHeld: true invertSolidWhileHeld: true
}, },
@ -359,9 +364,14 @@
grabbableKey: { grabbableKey: {
invertSolidWhileHeld: true, invertSolidWhileHeld: true,
spatialKey: { spatialKey: {
relativePosition: { rightRelativePosition: {
x: 0, x: -0.03,
y: 0.06, y: 0,
z: 0.11
},
leftRelativePosition: {
x: 0.03,
y: 0,
z: 0.11 z: 0.11
}, },
relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, 90) relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, 90)
@ -1152,9 +1162,9 @@
grabbableKey: { grabbableKey: {
spatialKey: { spatialKey: {
relativePosition: { relativePosition: {
x: -0.05, x: 0.01,
y: 0, y: 0,
z: 0.0 z: 0.1
}, },
relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, -90) relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, -90)
}, },
@ -1509,4 +1519,4 @@
}; };
// entity scripts always need to return a newly constructed object of our type // entity scripts always need to return a newly constructed object of our type
return new ResetSwitch(); return new ResetSwitch();
}); });

View file

@ -285,14 +285,14 @@ MasterReset = function() {
grabbableKey: { grabbableKey: {
spatialKey: { spatialKey: {
rightRelativePosition: { rightRelativePosition: {
x: 0.02, x: 0.03,
y: 0, y: 0,
z: -0.03 z: -0.085
}, },
leftRelativePosition: { leftRelativePosition: {
x: -0.02, x: -0.03,
y: 0, y: 0,
z: -0.03 z: -0.085
}, },
relativeRotation: Quat.fromPitchYawRollDegrees(100, 90, 0) relativeRotation: Quat.fromPitchYawRollDegrees(100, 90, 0)
}, },
@ -348,9 +348,14 @@ MasterReset = function() {
grabbableKey: { grabbableKey: {
invertSolidWhileHeld: true, invertSolidWhileHeld: true,
spatialKey: { spatialKey: {
relativePosition: { rightRelativePosition: {
x: 0, x: -0.03,
y: 0.06, y: 0,
z: 0.11
},
leftRelativePosition: {
x: 0.03,
y: 0,
z: 0.11 z: 0.11
}, },
relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, 90) relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, 90)
@ -1142,9 +1147,9 @@ MasterReset = function() {
grabbableKey: { grabbableKey: {
spatialKey: { spatialKey: {
relativePosition: { relativePosition: {
x: 0, x: 0.01,
y: 0, y: 0,
z: 0.06 z: 0.1
}, },
relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, -90) relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, -90)
}, },
@ -1494,4 +1499,4 @@ MasterReset = function() {
Script.scriptEnding.connect(cleanup); Script.scriptEnding.connect(cleanup);
} }
}; };