w0rm/elm-physics

Add ray-body collision detection to enable future mouse support.

paulmartel opened this issue · 1 comments

Given a ray (world origin point and normal), we need to be able to return details like BodyId, (Body?,) contactPoint, and worldTransform of the nearest collision to the ray's origin along its normal.

It's not clear to me whether this would benefit from being implemented as a Ray Shape -- I suspect not?

w0rm commented

Getting some promising results:

raycast
raycast-convex