Skip to content

Fix UpdateBBs for rotated entities#324

Merged
dexyfex merged 1 commit intodexyfex:masterfrom
kirill-mapper:fix-update-bbs-for-rotated
Apr 8, 2025
Merged

Fix UpdateBBs for rotated entities#324
dexyfex merged 1 commit intodexyfex:masterfrom
kirill-mapper:fix-update-bbs-for-rotated

Conversation

@kirill-mapper
Copy link
Contributor

• Correct bounding boxes for rotating entities
• Correct rotation around the center of the entity

• Correct bounding boxes for rotating entities
• Correct rotation around the center of the entity
@kirill-mapper
Copy link
Contributor Author

Before
Снимок экрана 2025-04-08 031854
After
Снимок экрана 2025-04-08 032149

@dexyfex dexyfex merged commit 1c4ab94 into dexyfex:master Apr 8, 2025
kirill-mapper added a commit to kirill-mapper/CodeWalker that referenced this pull request Apr 19, 2025
Fixed bounding box calculation to properly account for object rotation. The previous dexyfex#324 solution had two issues:

    Incorrect rotation direction - fixed by using inverted quaternion (Quaternion.Invert)
    Redundant operations with bounding box center - simplified transformation formula to standard "rotation + translation"

Now the bounding box correctly considers object rotation in space.
@kirill-mapper kirill-mapper mentioned this pull request Apr 19, 2025
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.

2 participants