mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
logging
This commit is contained in:
parent
1b61a240c1
commit
fcb6e7869d
2 changed files with 29 additions and 17 deletions
|
@ -484,8 +484,9 @@
|
|||
Entities.editEntity(this.arrow, arrowProperties);
|
||||
this.playShootArrowSound();
|
||||
|
||||
var whichHand = this.hand === 'left' ? 0 : 1;
|
||||
Controller.triggerShortHapticPulse(whichHand, 2);
|
||||
var backHand = this.hand === 'left' ? 1 : 0;
|
||||
var haptic = Controller.triggerShortHapticPulse(1, backHand);
|
||||
print('JBP TRIGGERED HAPTIC ' + haptic +" hand: "+ backHand)
|
||||
|
||||
//clear the strings back to only the single straight one
|
||||
this.deleteStrings();
|
||||
|
|
|
@ -62,24 +62,35 @@ function makeBow() {
|
|||
shapeType: 'compound',
|
||||
compoundShapeURL: COLLISION_HULL_URL,
|
||||
script: SCRIPT_URL,
|
||||
collidesWith: 'dynamic,kinetmatic,static',
|
||||
userData: JSON.stringify({
|
||||
grabbableKey: {
|
||||
invertSolidWhileHeld: true
|
||||
},
|
||||
wearable:{joints:{RightHand:[{x:0.03960523009300232,
|
||||
y:0.01979270577430725,
|
||||
z:0.03294898942112923},
|
||||
{x:-0.7257906794548035,
|
||||
y:-0.4611682891845703,
|
||||
z:0.4436084032058716,
|
||||
w:-0.25251442193984985}],
|
||||
LeftHand:[{x:0.0055799782276153564,
|
||||
y:0.04354757443070412,
|
||||
z:0.05119767785072327},
|
||||
{x:-0.14914104342460632,
|
||||
y:0.6448180079460144,
|
||||
z:-0.2888556718826294,
|
||||
w:-0.6917579770088196}]}}
|
||||
wearable: {
|
||||
joints: {
|
||||
RightHand: [{
|
||||
x: 0.03960523009300232,
|
||||
y: 0.01979270577430725,
|
||||
z: 0.03294898942112923
|
||||
}, {
|
||||
x: -0.7257906794548035,
|
||||
y: -0.4611682891845703,
|
||||
z: 0.4436084032058716,
|
||||
w: -0.25251442193984985
|
||||
}],
|
||||
LeftHand: [{
|
||||
x: 0.0055799782276153564,
|
||||
y: 0.04354757443070412,
|
||||
z: 0.05119767785072327
|
||||
}, {
|
||||
x: -0.14914104342460632,
|
||||
y: 0.6448180079460144,
|
||||
z: -0.2888556718826294,
|
||||
w: -0.6917579770088196
|
||||
}]
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
|
@ -148,4 +159,4 @@ function cleanup() {
|
|||
Entities.deleteEntity(preNotchString);
|
||||
}
|
||||
|
||||
Script.scriptEnding.connect(cleanup);
|
||||
Script.scriptEnding.connect(cleanup);
|
Loading…
Reference in a new issue