Hello, I want to collect all the entities of a specific location (cartesian3). I’ve gone through Picking example in sandcastle in which objects can be picked by mouse click/movement.etc. But I want to pick objects without mouse interaction, simply by passing cartesian3 position.
Here is the experimental sandcastle link of what I’m doing.
In this example, If you click on Yellow point or anywhere in Red colored area, you can see on console number objects located on the clicked location.
Now, If you click on “Pick Entity” button, you will not get any picked objects number.
Below code can be used to convert canvas cordinates (cartesian2) to cartesian3:
//on mouse click handler let ray = viewer.camera.getPickRay(click.position); scene.globe.pick(ray, scene);
But how do it’s vice versa?
I just want to collect number of objects without using mouse events.
- Thanks & Regards,