mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +02:00
experiment
This commit is contained in:
parent
f05f283b04
commit
d9f5a0ccaf
1 changed files with 2 additions and 1 deletions
|
@ -1439,7 +1439,7 @@ function MyController(hand) {
|
|||
this.offsetPosition = Vec3.multiplyQbyV(Quat.inverse(Quat.multiply(handRotation, this.offsetRotation)), offset);
|
||||
if (this.temporaryPositionOffset && (this.state == STATE_EQUIP || this.state == STATE_HOLD)) {
|
||||
this.offsetPosition = this.temporaryPositionOffset;
|
||||
hasPresetPosition = true;
|
||||
// hasPresetPosition = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1464,6 +1464,7 @@ function MyController(hand) {
|
|||
reparentProps["localRotation"] = this.offsetRotation;
|
||||
}
|
||||
Entities.editEntity(this.grabbedEntity, reparentProps);
|
||||
|
||||
Messages.sendMessage('Hifi-Object-Manipulation', JSON.stringify({
|
||||
action: 'equip',
|
||||
grabbedEntity: this.grabbedEntity
|
||||
|
|
Loading…
Reference in a new issue