Archive 17/01/2023.

Raycast from inside the sphere

ikeda

I’m using UrhoSharp.

I installed the camera in the center of the sphere and ran RaycastSingle towards the sphere, but I can’t get any results.
If you move the camera out of the sphere and run it, you will get a RayQueryResult.

What steps do I need to take to run RaycastSingle from the center of the sphere and get results?

SirNate0

Hello @ikeda, welcome to the forum!

I believe your issue has to do with the cull direction of the sphere’s material - see here for a bit more of an explanation:

ikeda

Thank you @SirNate0 .

I created a sphere that was inverted with Blender.
I placed the inverted sphere on the outside of the original sphere.
RaycastSingle was able to receive a RayQueryResult for the outer sphere.