This project is read-only.
1
Vote

IntersectSegmentCapsule is wrong.

description

I was looking for a IntersectSegmentCapsule method implementation and stumbled on your implementation (in collision.cs), but unfortunately it's wrong.
It works as long as you use it for a test, but 'tSeg' will be wrong. It won't give you the t for the intersection with the capsule, but the point closest to a infinitely thin capsule (capsule line segment).
Please fix this as other people might be looking for this method (as it's missing in the realtime collision detection book, from which you obviously got your other collision methods) and they might stumble on this incorrect implementation (like I have) and assume it works ...

comments