Physics and joints (DEF-3025)


Are there any plans to adding joints into physics engine?
Just want to porting some old stuff from Flash to Defold such as:


There is currently no plan for this, but we’ve said that we want it many times :confused:
I added the ticket DEF-3025 for this.


So I can’t make a car physics. And it’s impossible to develop games like Earn to Die, Moto X3M, Hill Climb Racing, Happy Wheels etc…


Not impossible. For example, someone could make a Box2D native extension with all of the features.


It’s not an easy, because we have no access to buffers with game components like transform, physic shapes data etc.
For now it will have big overhead for communication like lua->NE->lua->Engine every frame.
It would be great if Defold developers made this buffers accessable using Defold SDK.

We do not even have possability to read vectors (user types: vector3, vector4, matrix etc) on NE side (using Defold SDK) but we talked about this with @Mathias_Westerdahl and I hope for a soon improvements here.


Car physics can be implemented in Lua, should not be too hard. Check out this javascript version, for instance:


It’s not exactly what @notbadgun meant. Moto X3M:


That is also possible, but takes more work, of course.


Here’s a unity version that looks nicer. It’s ported from the same physics code: