Raycasting and Rigidbodies

If anyone has prior knowledge, do colliders need Rigidbodies to be detected in a Raycast? Can Kinematic Rigidbodies be detected?

2 Answers

2

All colliders can be detected by raycasts, either kinematic or not.

Thanks for the prompt response guys.

Hey,
Colliders do NOT necessarily need RigidBodies to be detected by a RayCast.
Yes, A kinematic RigidBody can be detected with no problem.
There must be a collider that’s what important.

To explicitly state the opposite: A rigid body cannot be detected by a raycast if it has no collider.