Skip to content
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

Fixed AABOX2D collision #129

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Fixed AABOX2D collision #129

merged 1 commit into from
Mar 13, 2024

Commits on Mar 13, 2024

  1. Fixed AABOX2D collision

    - Discovered that the AABOX2D format is not (unk, min, max) but is
      (center, unk, size)
    - center is the "center" of the rect as an offset from the actor vPos
    - size is the (w, h) of the box
    - unk seems to be 0 in the examples i'm working with
    - to render the box ( (cx, cy), u, (w, h) ), the coordinates are:
      - left: vPos.x + cx - w/2
      - right: vPos.x + cx + w/2
      - top: vPos.y + cy - h/2
      - bottom: vPos.y + cy + h/2
    steven11sjf committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    f1129fb View commit details
    Browse the repository at this point in the history