I agree, I typically use attachedRigidbody within this type of loop.
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘Try with hit.attachedRigidbody, it worked for me.
Also a little mistake. You're calling getComponent twice in same loop…’ is closed to new replies.