Skip to content

Add type mask customization to RayCast2D

Created by: leonkrause

RayCast2D currently uses the default ray cast type mask TYPE_MASK_COLLISION, which does not include TYPE_MASK_AREA. This makes it impossible to use the node to check for collision with Area2D nodes.

This change adds full customization of the object type mask used for the raycast.

Depends on #2587 for Area2D collision to work properly.

Merge request reports