mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 17:10:41 +02:00
honor hardcoded equip offsets
This commit is contained in:
parent
11d2f9a8fc
commit
3b7f8ef77d
1 changed files with 5 additions and 2 deletions
|
@ -365,7 +365,8 @@ function MyController(hand) {
|
||||||
|
|
||||||
this.setState = function(newState) {
|
this.setState = function(newState) {
|
||||||
if (WANT_DEBUG || WANT_DEBUG_STATE) {
|
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;
|
this.state = newState;
|
||||||
};
|
};
|
||||||
|
@ -1249,7 +1250,9 @@ function MyController(hand) {
|
||||||
var handJointIndex = MyAvatar.getJointIndex(this.hand === RIGHT_HAND ? "RightHand" : "LeftHand");
|
var handJointIndex = MyAvatar.getJointIndex(this.hand === RIGHT_HAND ? "RightHand" : "LeftHand");
|
||||||
Entities.editEntity(this.grabbedEntity, {
|
Entities.editEntity(this.grabbedEntity, {
|
||||||
parentID: MyAvatar.sessionUUID,
|
parentID: MyAvatar.sessionUUID,
|
||||||
parentJointIndex: handJointIndex
|
parentJointIndex: handJointIndex,
|
||||||
|
localPosition: this.offsetPosition,
|
||||||
|
localRotation: this.offsetRotation
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue