Open bogcow opened 1 month ago
Can you please try with 4.2.2 to make sure it's still occurring
This is because of the following:
It should be documented and/or made configurable.
Making it configurable would require moving some memory allocations:
Tested versions
4.2.stable
System information
Windows 10
Issue description
Calling the function
In this GIF, the red circle is the intersect_shape call being made every physics frame. The lighter blue circle is the Area2D that we are trying to intersect. The darker blue circle is 3,000 Area2Ds on a separate collision layer.
Notice how the size of the return results array goes to 0 as the mouse gets closer to the 3,000 Area2Ds. You would expect that the results size is 1 as long as the red circle is over the lighter blue circle.
PhysicsDirectSpaceState2D.intersect_shape
returns an empty array when there are many nearby overlapping Area2Ds.Steps to reproduce
Minimal reproduction project (MRP)
IntersectShapeTest.zip