mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-29 00:10:33 +02:00
fix typo in variable name
This commit is contained in:
parent
e70cd9edd9
commit
ffeac220f9
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ function mouseIntersectionWithPlane(pointOnPlane, planeNormal, event) {
|
||||||
// we re-route the intersection to be in front at max distance.
|
// we re-route the intersection to be in front at max distance.
|
||||||
var rayDirection = Vec3.subtract(pickRay.direction, Vec3.multiply(planeNormal, dirDotNorm));
|
var rayDirection = Vec3.subtract(pickRay.direction, Vec3.multiply(planeNormal, dirDotNorm));
|
||||||
rayDirection = Vec3.normalize(rayDirection);
|
rayDirection = Vec3.normalize(rayDirection);
|
||||||
localIntersection = Vec3.multiply(rayDireciton, MAX_GRAB_DISTANCE);
|
localIntersection = Vec3.multiply(rayDirection, MAX_GRAB_DISTANCE);
|
||||||
localIntersection = Vec3.sum(localIntersection, Vec3.multiply(planeNormal, distanceFromPlane));
|
localIntersection = Vec3.sum(localIntersection, Vec3.multiply(planeNormal, distanceFromPlane));
|
||||||
}
|
}
|
||||||
var worldIntersection = Vec3.sum(cameraPosition, localIntersection);
|
var worldIntersection = Vec3.sum(cameraPosition, localIntersection);
|
||||||
|
|
Loading…
Reference in a new issue