mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
grab attachments
This commit is contained in:
parent
7dfa80f666
commit
33e9a71000
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ Script.include("/~/system/libraries/cloneEntityUtils.js");
|
||||||
(distance > NEAR_GRAB_RADIUS * sensorScaleFactor)) {
|
(distance > NEAR_GRAB_RADIUS * sensorScaleFactor)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (entityIsGrabbable(props)) {
|
if (entityIsGrabbable(props) || entityIsCloneable(props)) {
|
||||||
// give haptic feedback
|
// give haptic feedback
|
||||||
if (props.id !== this.hapticTargetID) {
|
if (props.id !== this.hapticTargetID) {
|
||||||
Controller.triggerHapticPulse(HAPTIC_PULSE_STRENGTH, HAPTIC_PULSE_DURATION, this.hand);
|
Controller.triggerHapticPulse(HAPTIC_PULSE_STRENGTH, HAPTIC_PULSE_DURATION, this.hand);
|
||||||
|
|
Loading…
Reference in a new issue