mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:56:44 +02:00
don't reset local offset during a hold
This commit is contained in:
parent
d9f5a0ccaf
commit
9942a5edd4
1 changed files with 1 additions and 1 deletions
|
@ -1437,7 +1437,7 @@ function MyController(hand) {
|
||||||
var currentObjectPosition = grabbedProperties.position;
|
var currentObjectPosition = grabbedProperties.position;
|
||||||
var offset = Vec3.subtract(currentObjectPosition, handPosition);
|
var offset = Vec3.subtract(currentObjectPosition, handPosition);
|
||||||
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.offsetPosition = this.temporaryPositionOffset;
|
this.offsetPosition = this.temporaryPositionOffset;
|
||||||
// hasPresetPosition = true;
|
// hasPresetPosition = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue