mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:36:47 +02:00
don't do a haptic pulse when av's hand goes near grabbable tablet
This commit is contained in:
parent
c967f9383a
commit
aed1d69377
1 changed files with 7 additions and 1 deletions
|
@ -1233,7 +1233,13 @@ function MyController(hand) {
|
||||||
});
|
});
|
||||||
if (grabbableEntities.length > 0) {
|
if (grabbableEntities.length > 0) {
|
||||||
if (!this.grabPointIntersectsEntity) {
|
if (!this.grabPointIntersectsEntity) {
|
||||||
Controller.triggerHapticPulse(1, 20, this.hand);
|
// don't do haptic pulse for tablet
|
||||||
|
var nonTabletEntities = grabbableEntities.filter(function(entityID) {
|
||||||
|
return entityID != HMD.tabletID && entityID != HMD.homeButtonID;
|
||||||
|
});
|
||||||
|
if (nonTabletEntities.length > 0) {
|
||||||
|
Controller.triggerHapticPulse(1, 20, this.hand);
|
||||||
|
}
|
||||||
this.grabPointIntersectsEntity = true;
|
this.grabPointIntersectsEntity = true;
|
||||||
this.grabPointSphereOn();
|
this.grabPointSphereOn();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue