Add back manipulation of collidesWith in bow

This commit is contained in:
Ryan Huffman 2016-11-30 13:26:56 -08:00
parent 35bc962654
commit 58c232529b

View file

@ -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() {