mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 15:24:07 +02:00
add short haptic pulse on release
This commit is contained in:
parent
aa742a50ca
commit
f6d19ba32f
1 changed files with 4 additions and 0 deletions
|
@ -479,10 +479,14 @@
|
||||||
// rotation: arrowProps.rotation
|
// rotation: arrowProps.rotation
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//actually shoot the arrow and play its sound
|
//actually shoot the arrow and play its sound
|
||||||
Entities.editEntity(this.arrow, arrowProperties);
|
Entities.editEntity(this.arrow, arrowProperties);
|
||||||
this.playShootArrowSound();
|
this.playShootArrowSound();
|
||||||
|
|
||||||
|
var whichHand = this.hand==='left' ? 0 :1;
|
||||||
|
Controller.triggerShortHapticPulse(whichHand, 2);
|
||||||
|
|
||||||
//clear the strings back to only the single straight one
|
//clear the strings back to only the single straight one
|
||||||
this.deleteStrings();
|
this.deleteStrings();
|
||||||
Entities.editEntity(this.preNotchString, {
|
Entities.editEntity(this.preNotchString, {
|
||||||
|
|
Loading…
Reference in a new issue