ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.83k stars 2.01k forks source link

Fix for swept box rays that were never really working properly with OBBs. (IntersectRayWithOBB) #590

Open XutaxKamay opened 2 months ago

XutaxKamay commented 2 months ago

IntersectRayWithOBB has a bug where it would somehow ignore angle information inside the matrix.

Why? I don't know. Maybe some developers not wanting to use VectorTransform somehow ? (or overworked)

This is probably present in all Source games (including Source 2) if it hasn't been fixed yet. (?)

This fixes some edge cases where for example a game mod wants to have thicker bullets or other stuff that I'm not aware of (I discovered it by accident by working on the engine).