Core/Physics: Add WheelJoint and PistonJoint version 2.#823
Core/Physics: Add WheelJoint and PistonJoint version 2.#823kan6868 wants to merge 6 commits intocoronalabs:masterfrom
Conversation
Syntax:
```
local joint = physics.newJoint("wheelV2", objA, objB, objB.x, objB.y, 0, 1);
```
This reverts commit ab9a0fb.
|
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). |
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
Box2d changes:
coronalabs/submodule-box2d#3