Skip to content

Conversation

@kan6868
Copy link
Contributor

@kan6868 kan6868 commented Jul 10, 2025

To keep backward compatible with Box2D v2.4.2 upgrades, I've created an additional v2 for joints.

Need to add b2WheelJointV2 and b2PrismaticJoint to build list

local wheelJoint = physics.newJoint("wheelV2", bodyA, bodyB, anchor_x, anchor_y, axisX, axisY);

local pistonJoint = physics.newJoint( "pistonV2", bodyA, bodyB, anchor_x, anchor_y, axisX, axisY )

Box2d changes:
coronalabs/submodule-box2d#3

@kan6868 kan6868 requested a review from Shchvova as a code owner July 10, 2025 14:15
@clang-clang-clang
Copy link
Contributor

Has Solar2D officially upgraded to Box2D V3? If not, wouldn't it be better to keep the same keyword, and automatically determine by the organization of the parameter such as table or position, without introducing an extra key? Just like newText?

@kan6868
Copy link
Contributor Author

kan6868 commented Jul 15, 2025

Solar2D đã chính thức nâng cấp lên Box2D V3 chưa? Nếu chưa, liệu có tốt hơn không nếu giữ nguyên từ khóa và tự động xác định theo cách tổ chức tham số như bảng hoặc vị trí, mà không cần thêm khóa bổ sung? Giống như newText ?

Has Solar2D officially upgraded to Box2D V3? If not, wouldn't it be better to keep the same keyword, and automatically determine by the organization of the parameter such as table or position, without introducing an extra key? Just like newText?

No this is just an upgrade of the missing features of the current Solar2D to 2.4.2 (the last version of box2d c++), upgrading to v3 requires a rebuild from scratch for the current physics api.

My roadmap for the Solar2D physics api is to customize it as a separate version of box2d. This may include porting the new box2D v3 features into the current version.

I want to separate it from the old wheel/piston, as it will be completely different in how it works. (unlike text which is just an addition of parameters).

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