Skip to content

Fix picking in CanvasLayer

Created by: RandomShaper

New APIs in 2D physics allow intersection queries filtered by CanvasLayer object instance id. Viewport keep an inventory of its descendant CanvasLayers and takes advantage of all that to test picking with the mouse/touch position correctly transformed for each CanvasLayer.

Fixes #18073 (closed) about picking, not about general physics, but it may be enough.

This code is donated by an anonymous contributor.

EDIT: Marked as [wip] until I make sure about something...

Merge request reports

Loading