I’ve been using Physics2d.Raycast to detect Polygon Collider 2D with no problems so far.
But if I add a Rigidbody2d to said gameobject or its parents, my Raycasts no longer detects the Collider.
The Rigidbody2d is kinematic and not simulated, but I’ve tried it with various settings to no avail. The moment I remove the RIgidbody2d component, everything works again.
I’m was under the impression that Rigidbody2d shouldn’t affect Raycasting at all… but so lost now.
How to have both Rigidbody2d and still be able to detect its Colliders with Raycast?..
For additional context, I only want to use Rigidbody2d to essentially group child/grandchild Colliders in to a Compound Collider. If there are workarounds to sidestep this whole issue, I’m all ears as well. Still hoping its just a noob mistake and not some kind of niche bug…