Raycasting inside a mesh

Hi there,

I’m having a bit of a problem here with Raycasting.
When performing raycasting against a mesh, is there a way to know if the raycast is being perfomed inside the mesh, or outside the mesh (the mesh in this case is always a sphere) ?
I would think that if i raycast inside the mesh,the raycasthit normals would be negative,and positive if outside, but doens’t seem to be the case.
Is there a way to know on what side of the mesh i’m “shooting” my ray against ?
thanks,
Bruno

Raycasting will only hit the front sides of polygons, so raycasting from inside a sphere mesh won’t detect anything. You need to model the inside if you want to collide against it.

–Eric

I don’t want to collide with the inside.
The problem is, i’m inside the sphere and when doing a raycast it’s detecting a contact on the outside of the sphere, like if i was shooting the ray from the inside to the outside.