Skip to content

Refactor physics-2d based on box2d 3.2 (latest commits)#3095

Draft
halx99 wants to merge 6 commits intodevfrom
physics-2d
Draft

Refactor physics-2d based on box2d 3.2 (latest commits)#3095
halx99 wants to merge 6 commits intodevfrom
physics-2d

Conversation

@halx99
Copy link
Collaborator

@halx99 halx99 commented Mar 20, 2026

Describe your changes

  • Update box2d to latest
  • Refactor Joint2D, re-write Joint2D tests
  • Implement Contact2D
  • Refactor Rigidbody2D managment, now auto managed as component of Node, not add to PhysicsWorld2D
  • Refactor physics2d const variable
  • Collider2D filter bitmask

Issue ticket number and link

Checklist before requesting a review

For each PR

  • Add Copyright if it missed:
    - "Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md)."

  • I have performed a self-review of my code.

    Optional:

    • I have checked readme and add important infos to this PR.
    • I have added/adapted some tests too.

For core/new feature PR

  • I have checked readme and add important infos to this PR.
  • I have added thorough tests.

Axmol 3.x ------------------------------------------------------------

For each 3.x PR

  • Check the '#include "axmol.h"' and replace it with the needed headers.

@halx99 halx99 added this to the 3.0.0 milestone Mar 20, 2026
@halx99 halx99 force-pushed the physics-2d branch 2 times, most recently from 1f449c6 to 4b65fdf Compare March 20, 2026 16:50
@halx99 halx99 linked an issue Mar 21, 2026 that may be closed by this pull request
halx99 added 3 commits March 22, 2026 12:18
- Remove Rigidbody2D::setTag
- Make CollisionFilter works with box2d
- Make change rigidbody2d betweens node works
- Add API: Rigidbody2D::setMass and Rigidbody2D::setAutoMass
- Make rigidbody transform stable when change between nodes
@halx99 halx99 changed the title Refactor physics-2d Refactor physics-2d based on box2d 3.2 (latest commits) Mar 22, 2026
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.

Reimplement physics2d with box2d

1 participant