Physics and joints (DEF-3025)


#1

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


#3

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.


#4

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…


#5

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


#6

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.


#7

Car physics can be implemented in Lua, should not be too hard. Check out this javascript version, for instance: https://github.com/spacejack/carphysics2d


#8

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


#9

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


#10

Here’s a unity version that looks nicer. It’s ported from the same physics code: https://github.com/jongallant/CarSimulator