Raycast iskinematic

Is there a way for isKinematic rigid body to detect being hit with a raycast?

Raycasts are against colliders, and don’t care if there’s a rigidbody around, much less what the settings on the rigidbody are. So yes, kinematic rigidbodies can be hit with a raycast.

1 Like

The OP is asking if the rigidbody can “detect” being hit with a raycast. I interpret that as if he wants the rigidbody to respond to the raycast hit.

Or am I misunderstanding the question?

No, there is not. You have to use the Raycast to convey something to what it hit.

Thanks for the help to all but I found my problem. I had a capsule collider on the gameObject with the rigidbody and it was causing problems with the raycast. Thanks again