Search Unity

Raycasts starting from inside primitive colliders

Discussion in 'Editor & General Support' started by Jonathan Czeck, Dec 29, 2006.

  1. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    In a quick test, I found that raycasts starting from inside spheres hit the sphere the raycast starts in. This is not the same for capsules and boxes. I am assuming the orientation of the collider is irrelevant. So, is this expected behavior?

    Thanks,
    -Jon
     
  2. forestjohnson

    forestjohnson

    Joined:
    Oct 1, 2005
    Posts:
    1,370
    I have noticed this too. I have just used capsules for spheres that need raycasts in them in megapixel.