mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 20:13:40 +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);
|
this.offsetPosition = Vec3.multiplyQbyV(Quat.inverse(Quat.multiply(handRotation, this.offsetRotation)), offset);
|
||||||
if (this.temporaryPositionOffset && (this.state == STATE_EQUIP || this.state == STATE_HOLD)) {
|
if (this.temporaryPositionOffset && (this.state == STATE_EQUIP || this.state == STATE_HOLD)) {
|
||||||
this.offsetPosition = this.temporaryPositionOffset;
|
this.offsetPosition = this.temporaryPositionOffset;
|
||||||
hasPresetPosition = true;
|
// hasPresetPosition = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1464,6 +1464,7 @@ function MyController(hand) {
|
||||||
reparentProps["localRotation"] = this.offsetRotation;
|
reparentProps["localRotation"] = this.offsetRotation;
|
||||||
}
|
}
|
||||||
Entities.editEntity(this.grabbedEntity, reparentProps);
|
Entities.editEntity(this.grabbedEntity, reparentProps);
|
||||||
|
|
||||||
Messages.sendMessage('Hifi-Object-Manipulation', JSON.stringify({
|
Messages.sendMessage('Hifi-Object-Manipulation', JSON.stringify({
|
||||||
action: 'equip',
|
action: 'equip',
|
||||||
grabbedEntity: this.grabbedEntity
|
grabbedEntity: this.grabbedEntity
|
||||||
|
|
Loading…
Reference in a new issue