I’m trying to use raycast on models I’ve imported from the Blender mdl exporter. I’ve been having trouble with the Avocado model from the glTF 2.0 sample repository. The model is relatively small and I need to set it’s scale to 30 to make it the size I want. The problem is when I RaycastSingle with RAY_TRIANGLE it won’t hit the back of the avocado model, just the front part and the pit. When the model is scaled to 1 raycasts work fine.
Has anyone else had an issue with raycasts not working on their own models when scaled? And Is this a problem with the model or are there limitations to the triangle raycast algorithm that I don’t know about?
Here is the source model, you’ll also need a Blender glTF importer.