Repository navigation
Fix M1A2 tracks twisting as the road wheels turn - #46
Merged
kr4uzi merged 1 commit intoNov 17, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stock M1A2 templates set
ObjectTemplate.rotateUV 1on their road-wheel springs. The missing console binding leaves the flag false, allowing the lower track geometry to twist as the wheels turn. This restores the binding to the existingSpringTemplate::m_rotateUVfield.The retail Win32 executor at
0x57C48Freads and writes the flag byte atSpringTemplate + 0x24C. The existing spring physics already uses this flag to keep the track geometry aligned.Blender comparison
The lower track is highlighted in red on the stock M1A2 mesh. Both views show the wheel parts rotated by 90 degrees.
Validation
Compiled the changed translation unit for the macOS arm64 client and dedicated-server images on
kr4uzi/OpenBF2:mainat02cc5ac. Rechecked the original BF2 1.50 x86 executable in Ghidra and verified the getter and setter instructions.git diff --checkpassed.The same binding restoration was submitted upstream in B2BF/OpenBF2#77, where the MSVC x86 compile, syntax check, and official client link passed.
Codex assisted with preparing, validating, and submitting this port at the author's request.