There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Ray casting and collision
I need a way to be able to cast a ray through the physics world and have it return to me the type of object I hit, and the point of intersection.
This needs to work very efficiently (I should be able to do it multiple times per frame with almost no impact).
The ray can technically be a line (have two endpoints instead of one like a traditional ray), if it helps performance.
This should probably interact directly with the physics system. I'd prefer sending a message to the physics system about the ray, and the physics system fills my message with the information about the type and intersection point.