mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 00:43:49 +02:00
Remove /* style multi-line comments
This commit is contained in:
parent
35276c3893
commit
a14bbe4e68
1 changed files with 31 additions and 35 deletions
|
@ -916,11 +916,11 @@ function MyController(hand) {
|
||||||
this.equipHotspotOverlays = [];
|
this.equipHotspotOverlays = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
///
|
||||||
* Performs ray pick test from the hand controller into the world
|
// Performs ray pick test from the hand controller into the world
|
||||||
* @param {number} which hand to use, RIGHT_HAND or LEFT_HAND
|
// @param {number} which hand to use, RIGHT_HAND or LEFT_HAND
|
||||||
* @returns {object} returns object with two keys entityID and distance
|
// @returns {object} returns object with two keys entityID and distance
|
||||||
*/
|
//
|
||||||
this.calcRayPickInfo = function(hand) {
|
this.calcRayPickInfo = function(hand) {
|
||||||
|
|
||||||
var pose = Controller.getPoseValue((hand === RIGHT_HAND) ? Controller.Standard.RightHand : Controller.Standard.LeftHand);
|
var pose = Controller.getPoseValue((hand === RIGHT_HAND) ? Controller.Standard.RightHand : Controller.Standard.LeftHand);
|
||||||
|
@ -1365,14 +1365,12 @@ function MyController(hand) {
|
||||||
var handMoved = Vec3.multiply(Vec3.subtract(controllerPositionVSAvatar, this.previousControllerPositionVSAvatar),
|
var handMoved = Vec3.multiply(Vec3.subtract(controllerPositionVSAvatar, this.previousControllerPositionVSAvatar),
|
||||||
radius);
|
radius);
|
||||||
|
|
||||||
// double delta controller rotation
|
/// double delta controller rotation
|
||||||
/*
|
// var DISTANCE_HOLDING_ROTATION_EXAGGERATION_FACTOR = 2.0; // object rotates this much more than hand did
|
||||||
var DISTANCE_HOLDING_ROTATION_EXAGGERATION_FACTOR = 2.0; // object rotates this much more than hand did
|
// var handChange = Quat.multiply(Quat.slerp(this.previousControllerRotation,
|
||||||
var handChange = Quat.multiply(Quat.slerp(this.previousControllerRotation,
|
// controllerRotation,
|
||||||
controllerRotation,
|
// DISTANCE_HOLDING_ROTATION_EXAGGERATION_FACTOR),
|
||||||
DISTANCE_HOLDING_ROTATION_EXAGGERATION_FACTOR),
|
// Quat.inverse(this.previousControllerRotation));
|
||||||
Quat.inverse(this.previousControllerRotation));
|
|
||||||
*/
|
|
||||||
|
|
||||||
// update the currentObject position and rotation.
|
// update the currentObject position and rotation.
|
||||||
this.currentObjectPosition = Vec3.sum(this.currentObjectPosition, handMoved);
|
this.currentObjectPosition = Vec3.sum(this.currentObjectPosition, handMoved);
|
||||||
|
@ -1426,28 +1424,26 @@ function MyController(hand) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
// var defaultConstraintData = {
|
||||||
var defaultConstraintData = {
|
// axisStart: false,
|
||||||
axisStart: false,
|
// axisEnd: false
|
||||||
axisEnd: false
|
// }
|
||||||
}
|
//
|
||||||
|
// var constraintData = getEntityCustomData('lightModifierKey', this.grabbedEntity, defaultConstraintData);
|
||||||
var constraintData = getEntityCustomData('lightModifierKey', this.grabbedEntity, defaultConstraintData);
|
// var clampedVector;
|
||||||
var clampedVector;
|
// var targetPosition;
|
||||||
var targetPosition;
|
// if (constraintData.axisStart !== false) {
|
||||||
if (constraintData.axisStart !== false) {
|
// clampedVector = this.projectVectorAlongAxis(this.currentObjectPosition,
|
||||||
clampedVector = this.projectVectorAlongAxis(this.currentObjectPosition,
|
// constraintData.axisStart,
|
||||||
constraintData.axisStart,
|
// constraintData.axisEnd);
|
||||||
constraintData.axisEnd);
|
// targetPosition = clampedVector;
|
||||||
targetPosition = clampedVector;
|
// } else {
|
||||||
} else {
|
// targetPosition = {
|
||||||
targetPosition = {
|
// x: this.currentObjectPosition.x,
|
||||||
x: this.currentObjectPosition.x,
|
// y: this.currentObjectPosition.y,
|
||||||
y: this.currentObjectPosition.y,
|
// z: this.currentObjectPosition.z
|
||||||
z: this.currentObjectPosition.z
|
// }
|
||||||
}
|
// }
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
var handPosition = this.getHandPosition();
|
var handPosition = this.getHandPosition();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue