mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 10:33:40 +02:00
Fix for close grab jumping
This commit is contained in:
parent
67f4c250fd
commit
1f6e45d135
1 changed files with 1 additions and 1 deletions
|
@ -1370,7 +1370,7 @@ function MyController(hand) {
|
|||
var currentObjectPosition = grabbedProperties.position;
|
||||
var offset = Vec3.subtract(currentObjectPosition, handPosition);
|
||||
this.offsetPosition = Vec3.multiplyQbyV(Quat.inverse(Quat.multiply(handRotation, this.offsetRotation)), offset);
|
||||
if (this.temporaryPositionOffset) {
|
||||
if (this.temporaryPositionOffset && this.state != STATE_NEAR_GRABBING) {
|
||||
this.offsetPosition = this.temporaryPositionOffset;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue