honor hardcoded equip offsets

This commit is contained in:
Seth Alves 2016-01-26 15:44:26 -08:00
parent 11d2f9a8fc
commit 3b7f8ef77d

View file

@ -365,7 +365,8 @@ function MyController(hand) {
this.setState = function(newState) {
if (WANT_DEBUG || WANT_DEBUG_STATE) {
print("STATE: " + stateToName(this.state) + " --> " + stateToName(newState) + ", hand: " + this.hand);
print("STATE (" + this.hand + "): " + stateToName(this.state) + " --> " +
stateToName(newState) + ", hand: " + this.hand);
}
this.state = newState;
};
@ -1249,7 +1250,9 @@ function MyController(hand) {
var handJointIndex = MyAvatar.getJointIndex(this.hand === RIGHT_HAND ? "RightHand" : "LeftHand");
Entities.editEntity(this.grabbedEntity, {
parentID: MyAvatar.sessionUUID,
parentJointIndex: handJointIndex
parentJointIndex: handJointIndex,
localPosition: this.offsetPosition,
localRotation: this.offsetRotation
});
}