I’m using the math library and burst compiler for some simulation logic and raycasting is part of my algorithm so Im using raycastcommand.
As far as I understand, the burst compiler offers better performance to jobs that uses float3 instead of vector3. Because of this, all of my math logic is using float3. But when I get to the point where I need to use raycast commands, I need to cast my positions and directions, then run the commands, then get the results back and cast those hit points back to float3.
It seems like such a waste and I was hoping there would be an extensions or overload that would provide this. I’d write it myself but I don’t know where to find the source code for raycast command it’s not in the c# reference github as far as I can tell.