mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +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') {
|
||||
this.getStringHandPosition = function() { return _this.getControllerLocation("left").position; };
|
||||
}
|
||||
Entities.editEntity(_this.entityID, {
|
||||
collidesWith: "",
|
||||
});
|
||||
|
||||
var data = getEntityCustomData('grabbableKey', this.entityID, {});
|
||||
data.grabbable = false;
|
||||
|
@ -175,6 +178,9 @@
|
|||
Entities.deleteEntity(this.arrow);
|
||||
this.resetStringToIdlePosition();
|
||||
this.destroyArrow();
|
||||
Entities.editEntity(_this.entityID, {
|
||||
collidesWith: "static,dynamic,kinematic,otherAvatar,myAvatar"
|
||||
});
|
||||
},
|
||||
|
||||
destroyArrow: function() {
|
||||
|
|
Loading…
Reference in a new issue