Hi all, there is a problem with capsule collider and raycast.
We add a capsule collider to the bone “Bip01” in a character.
We use Physics.Raycast(ray from mouse screen postion) and the capsule collider to check that whether the mouse is point to the character.
When character do some animations(when Bip01 has rotation), sometimes Physics.Raycast returns true where the ray shouldn’t intersect the capsule collider.
If we modified the animation that Bip01 has no rotation, raycast result is correct.
If we use box collider instead of capsule collider, raycast result is correct.
Is something we did wrong?
Thanks