mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:18:38 +02:00
commit
f85d5d3ca8
1 changed files with 6 additions and 2 deletions
|
@ -186,7 +186,9 @@ function updateSeeking() {
|
||||||
averageMouseVelocity = lastIntegration = 0;
|
averageMouseVelocity = lastIntegration = 0;
|
||||||
var lookAt2D = HMD.getHUDLookAtPosition2D();
|
var lookAt2D = HMD.getHUDLookAtPosition2D();
|
||||||
if (!lookAt2D) {
|
if (!lookAt2D) {
|
||||||
print('Cannot seek without lookAt position');
|
// FIXME - determine if this message is useful but make it so it doesn't spam the
|
||||||
|
// log in the case that it is happening
|
||||||
|
//print('Cannot seek without lookAt position');
|
||||||
return;
|
return;
|
||||||
} // E.g., if parallel to location in HUD
|
} // E.g., if parallel to location in HUD
|
||||||
var copy = Reticle.position;
|
var copy = Reticle.position;
|
||||||
|
@ -420,7 +422,9 @@ function update() {
|
||||||
|
|
||||||
var hudPoint3d = calculateRayUICollisionPoint(controllerPosition, controllerDirection);
|
var hudPoint3d = calculateRayUICollisionPoint(controllerPosition, controllerDirection);
|
||||||
if (!hudPoint3d) {
|
if (!hudPoint3d) {
|
||||||
print('Controller is parallel to HUD');
|
// FIXME - determine if this message is useful but make it so it doesn't spam the
|
||||||
|
// log in the case that it is happening
|
||||||
|
//print('Controller is parallel to HUD');
|
||||||
return turnOffVisualization();
|
return turnOffVisualization();
|
||||||
}
|
}
|
||||||
var hudPoint2d = overlayFromWorldPoint(hudPoint3d);
|
var hudPoint2d = overlayFromWorldPoint(hudPoint3d);
|
||||||
|
|
Loading…
Reference in a new issue