Raycast doesn't detect colliders with rigidbodies?
Hello all, I've been using raycasts to detect characters with no issues in the past. Recently I tried and it seems any objects with a rigidbody attached will not be listed by Physics.RaycastAll.
For reference, I have character objects that each have a rigidbody and a capsule collider. During testing, the raycast succeeds immediately if the rigidbody is removed. When the rigidbody is on the object, the raycast fails to detect this object.
This used to NOT be the case, so I'm wondering what is happening here?
Thank you in advance for the help!
pic 1: raycast detects object without rigidbody
pic 2: raycast does not detect object that has rigidbody
that should not be happening, can youy ty to replicate that behaviour in an empty project?
Your answer
Follow this Question
Related Questions
RayCastHit Not Returning Rigidbody 0 Answers
Advanced AI sight? AI can detect you if part of you is visible to them. Is it Possible? 1 Answer
How to cast a Ray using local pivot of an object? 1 Answer
Why doesnt the value change? 2 Answers
How to instantiate objects to mesh while restricting the spawn area on a single axis? 2 Answers