ValveSoftware / source-sdk-2013

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

Fix incorrect plane calculation in IntersectRayWithOBB #552

Open samisalreadytaken opened 2 years ago

samisalreadytaken commented 2 years ago

Hull trace against an OBB erroneously transforms calculated normal from world to local space instead of local to world.

This code is referenced in SweepBoxToStudio (bone_setup.cpp) > TraceToStudio > CBaseAnimating::TestHitboxes(); however it is not reached in existing SDK code because hull traces are not used.