From a4b9284d39b13e25489ba35165df0d69bb3c91a0 Mon Sep 17 00:00:00 2001 From: benptc Date: Wed, 11 May 2022 10:07:14 -0400 Subject: [PATCH] document projectedZ and worldIntersectPoint in object.js --- libraries/objectDefaultFiles/object.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/objectDefaultFiles/object.js b/libraries/objectDefaultFiles/object.js index 2fee142e9..6fe7413d6 100755 --- a/libraries/objectDefaultFiles/object.js +++ b/libraries/objectDefaultFiles/object.js @@ -436,9 +436,12 @@ screenY: eventData.y }); + // this adds the depth (relative to the camera) of the touch coordinate raycasted against the world if (typeof eventData.projectedZ !== 'undefined') { event.projectedZ = eventData.projectedZ; } + // this adds the 3D scene coordinates of the touch raycasted against the world + // currently it is world coordinates relative to the groundPlaneContainerObject if (typeof eventData.worldIntersectPoint !== 'undefined') { event.worldIntersectPoint = eventData.worldIntersectPoint; }