Hi,
Is there any way to read 3d coordinates (x,y,z) in a scene? I have tried using the following code:
//When pointer down event is raised
scene.onPointerDown = function (evt, pickResult) {
// if the click hits the ground object, we change the impact position
if (pickResult.hit) {
x = pickResult.pickedPoint.x;
y = pickResult.pickedPoint.y;
z = pickResult.pickedPoint.z;
}
};
But I could not read the value of z.