mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 03:40:20 +02:00
Add back manipulation of collidesWith in bow
This commit is contained in:
parent
35bc962654
commit
58c232529b
1 changed files with 6 additions and 0 deletions
|
@ -142,6 +142,9 @@
|
||||||
} else if (this.hand === 'right') {
|
} else if (this.hand === 'right') {
|
||||||
this.getStringHandPosition = function() { return _this.getControllerLocation("left").position; };
|
this.getStringHandPosition = function() { return _this.getControllerLocation("left").position; };
|
||||||
}
|
}
|
||||||
|
Entities.editEntity(_this.entityID, {
|
||||||
|
collidesWith: "",
|
||||||
|
});
|
||||||
|
|
||||||
var data = getEntityCustomData('grabbableKey', this.entityID, {});
|
var data = getEntityCustomData('grabbableKey', this.entityID, {});
|
||||||
data.grabbable = false;
|
data.grabbable = false;
|
||||||
|
@ -175,6 +178,9 @@
|
||||||
Entities.deleteEntity(this.arrow);
|
Entities.deleteEntity(this.arrow);
|
||||||
this.resetStringToIdlePosition();
|
this.resetStringToIdlePosition();
|
||||||
this.destroyArrow();
|
this.destroyArrow();
|
||||||
|
Entities.editEntity(_this.entityID, {
|
||||||
|
collidesWith: "static,dynamic,kinematic,otherAvatar,myAvatar"
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
destroyArrow: function() {
|
destroyArrow: function() {
|
||||||
|
|
Loading…
Reference in a new issue