Skip to content

Conversation

@danielchristiancazares
Copy link
Contributor

@danielchristiancazares danielchristiancazares commented Dec 25, 2025

Follow-up for #7157
xvec fix: When computing a perpendicular vector in the XZ plane, the x component should use yvec.z, not yvec.y. The old code produced non-orthogonal results for vectors not aligned with an axis.

rvec fix: When fvec is provided as primary and rvec is also given, the code never actually assigned rvec to xvec before using it in the cross product.

Copy link
Member

@Baezon Baezon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Thank you

@jg18 jg18 added fix A fix for bugs, not-a-bugs, and/or regressions. models Issues or features having to do with model data (like animations or geometry) labels Dec 25, 2025
@BMagnu BMagnu merged commit a8f4be1 into scp-fs2open:master Dec 26, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. models Issues or features having to do with model data (like animations or geometry)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants