Questions about drawing order and picking

The way it stands now, the first polygon that is declared and drawn gets sent to the bottom if another polygon is drawn on top or over lapping it. BUT if you click in the area that they both have in common, the lower entity is selected. Is this correct?

I am wondering if there is a way to get the entities placed on top to be the ones that are selected if common ground is clicked.

(Please correct me if I’m wrong. If pictures are needed for clarification, I can post them)


Unfortunately, we don’t currently have good support for ordering overlapping polygons. I think this is something we want to improve in the near future.

For now, you might be able to use Scene.drillPick. That returns an array of primitives that were located at the picked position.



Okay! Thank you for your response. You guys are really on top of it. I’ll give it a go!