mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
removed dead code
This commit is contained in:
parent
4532c93419
commit
5dcd942e8e
1 changed files with 1 additions and 5 deletions
|
@ -87,7 +87,6 @@ function handleGrabBehavior(deltaTime) {
|
|||
if (debug) printVector("start position", grabStartPosition, 3);
|
||||
}
|
||||
if (grabbingWithRightHand) {
|
||||
//grabDelta = Vec3.sum(grabDelta, Vec3.multiply(Controller.getSpatialControlVelocity(RIGHT_PALM), deltaTime));
|
||||
grabDelta = Vec3.subtract(Controller.getSpatialControlPosition(RIGHT_PALM), grabStartPosition);
|
||||
grabCurrentRotation = Controller.getSpatialControlRawRotation(RIGHT_PALM);
|
||||
}
|
||||
|
@ -105,7 +104,6 @@ function handleGrabBehavior(deltaTime) {
|
|||
}
|
||||
|
||||
if (grabbingWithLeftHand) {
|
||||
//grabDelta = Vec3.sum(grabDelta, Vec3.multiply(Controller.getSpatialControlVelocity(LEFT_PALM), deltaTime));
|
||||
grabDelta = Vec3.subtract(Controller.getSpatialControlPosition(LEFT_PALM), grabStartPosition);
|
||||
grabCurrentRotation = Controller.getSpatialControlRawRotation(LEFT_PALM);
|
||||
}
|
||||
|
@ -125,9 +123,7 @@ function handleGrabBehavior(deltaTime) {
|
|||
var right = Quat.getRight(headOrientation);
|
||||
var up = Quat.getUp(headOrientation);
|
||||
|
||||
//grabDelta = Quat.multiply(headOrientation, grabDelta);
|
||||
//grabDelta = Quat.multiply(Camera.getOrientation(), grabDelta);
|
||||
grabDelta = Vec3.multiplyQbyV(MyAvatar.orientation, Vec3.multiply(grabDelta, -1));
|
||||
grabDelta = Vec3.multiplyQbyV(MyAvatar.orientation, Vec3.multiply(grabDelta, -1));
|
||||
|
||||
if (debug) {
|
||||
printVector("grabDelta: ", grabDelta, 3);
|
||||
|
|
Loading…
Reference in a new issue