So far (outside of somehow adding it into Godot via C++ myself) this doesn’t seem possible but wanted to ask to see if i maybe missed something.
The most i could find was this issue and a couple of related ones.
My specific use case would be for drawing bullet holes onto meshes (via decals). Ideally also being able to determine the texture used on the faces of the meshes that are intersected (to determine an appropriate decal to use).
Having everything that is possible to hit duplicated as a static body or area seems excessive to me. Since the only data required for ray intersection should be the transform of the meshes faces/edges/vertices etc which i would think are already contained in the mesh itself?
Failing being able to make intersecting a ray with meshes work i will probably try experimenting with using areas. They seem the lowest performance cost out of all the options the existing ray cast can detect. I would still end up with most of the games geometry being duplicated though, once as actual meshes and once as collisions for all the areas.
I’m having trouble picturing the problem. Are you trying to have a bullet leave multiple decals in it’s path? Or decal non-colliders?
Maybe you can do something with collision layers and assigning the colliding objects to groups that determine the texture of the decal?
It seems op wants to have areas that can’t be reached not have colliders for performance, but still wants his bullets to be able to register hitting them for placing a decal on the collision.
Yeah this, although i should maybe clarify that the “bullet” is not a object/scene that has a position, i just perform one raycast to determine where it lands.
Also its not just about areas that cant be reached but very small “detail” things as well. Eg.: i might want to have bullet holes appear on the leaves of a plant but other than placing the hole on them the leaves don’t need to interact with the bullet or the physics system in any way. So creating an area or physics body just for this purpose seems like overkill.
So for me what you want sounds either like magic or like nonsense.
Ray casting is part of physics processing and therefore need a physics body. Using physics body actually should reduce performance impact since you can reduce the geometry of those making calculation less extensive as when you use the full Mesh geometry with al the details.
So for me just creating an auto generated physics body for ray pickability or using the actual mesh geometry sounds like the same thing. But maybe I’m missing something here.