mirror of
https://github.com/lubosz/overte.git
synced 2025-08-29 00:26:51 +02:00
improving far rotate
This commit is contained in:
parent
38096b48d9
commit
cea3c002dd
1 changed files with 1 additions and 5 deletions
|
@ -369,11 +369,6 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
otherFarGrabModule.currentObjectRotation = Quat.multiply(controllerRotationDelta,
|
||||
otherFarGrabModule.currentObjectRotation);
|
||||
|
||||
// Rotate about the translation controller's target position.
|
||||
this.offsetPosition = Vec3.multiplyQbyV(controllerRotationDelta, this.offsetPosition);
|
||||
otherFarGrabModule.offsetPosition = Vec3.multiplyQbyV(controllerRotationDelta,
|
||||
otherFarGrabModule.offsetPosition);
|
||||
|
||||
this.previousWorldControllerRotation = worldControllerRotation;
|
||||
};
|
||||
|
||||
|
@ -495,6 +490,7 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
}
|
||||
|
||||
if (otherFarGrabModule.grabbedThingID === this.grabbedThingID && otherFarGrabModule.distanceHolding) {
|
||||
this.prepareDistanceRotatingData(controllerData);
|
||||
this.distanceRotate(otherFarGrabModule);
|
||||
} else {
|
||||
this.distanceHolding = true;
|
||||
|
|
Loading…
Reference in a new issue