-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken origin: item drop not centered #30
Comments
0XDE57
added a commit
that referenced
this issue
Mar 22, 2023
-makes duplication issue so bad its almost unplayble. -remove some dead code -notes -remove velocity drift
github-project-automation
bot
moved this from Todo
to Done
in @0XDE57's untitled space project
Oct 9, 2024
NOTE: the child polygon origin is still incorrect! only the drops spawn location is now correct relative to the polygon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
item drops for asteroids are not centered, they spawn off center.
problem was wrong origin for box2d body vs point (highlighted green is correct center origin, highlighted purple is incorrect off-center origin)
the fix was to shift the points that define the hull by the polygon centroid:
this fixes the issue:
but this now causes issue #2 to happen in every case
The text was updated successfully, but these errors were encountered: