Skip to content

Fix incorrect plane calculation in IntersectRayWithOBB#552

Open
samisalreadytaken wants to merge 2 commits into
ValveSoftware:masterfrom
samisalreadytaken:collisionutils-fix
Open

Fix incorrect plane calculation in IntersectRayWithOBB#552
samisalreadytaken wants to merge 2 commits into
ValveSoftware:masterfrom
samisalreadytaken:collisionutils-fix

Conversation

@samisalreadytaken
Copy link
Copy Markdown

@samisalreadytaken samisalreadytaken commented Aug 27, 2022

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.

Bitl referenced this pull request in FIREFIGHT-RELOADED/FIREFIGHT-RELOADED-src-sdk-2013 Mar 10, 2023
Baklojan added a commit to Baklojan/source-sdk-2013 that referenced this pull request Jun 21, 2024
Bitl added a commit to FIREFIGHT-RELOADED/FIREFIGHT-RELOADED-src-sdk-2013 that referenced this pull request Feb 20, 2025
dimhotepus added a commit to Source-Authors/Obsoletium that referenced this pull request Aug 13, 2025
Hull trace against an OBB erroneously transforms calculated normal from world to local space instead of local to world.

See
ValveSoftware/source-sdk-2013#552
ValveSoftware/source-sdk-2013#590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant