Allowed sensors to collide with one another #432
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I figured I could ask this question in the form of a PR. :)
I noticed that sensors are unable to detect other sensors overlapping with them. I realize this is probably an unusual thing to want to have, but it is none the less something that Godot offers, so I must try to implement it.
I dug through the code a bit and found the lines that I've removed in this PR. Removing them seems to unlock the ability to receive sensor-to-sensor contact reports.
Is there a particular reason why this should be there, considering that the existing filtering mechanisms, like
ObjectLayerPairFilter
, have the opportunity to filter out those collisions already?Feel free to push back on this if it seems too niche of a use-case. It's a small enough change that I'd be happy to maintain it on my own fork, assuming it even makes sense to begin with.