Code Monkey home page Code Monkey logo

Comments (8)

Birch-san avatar Birch-san commented on July 18, 2024 5

I've forked box2d.js and added support for Box2D v2.4.0:
https://github.com/Birch-san/box2d-wasm

from box2d.js.

kripken avatar kripken commented on July 18, 2024

I don't have time to maintain this project myself, but I'd be happy to merge pull requests like that, @Birch-san

from box2d.js.

Birch-san avatar Birch-san commented on July 18, 2024

thanks! :) I'm not sure what that pull request would look like — box2d-wasm isn't a fork in the strictest sense — it's a "start again" but with copying + modifying of a few files (the .idl bindings, glue stub, helpers), and with an entirely different approach to build and source control.

I think it'd be relatively easy to contribute TypeScript typings to box2d.js (i.e. by running https://github.com/Birch-san/box2d-wasm/tree/master/webidl-to-ts on each .idl file you have), or to contribute a .wasm and .idl of the Box2D v2.4.0+@f0f9d50 commit that I'm on, but anything beyond that would be substantially harder (e.g. due to the cmake-based build system being very different to the Makefile-based build system).

from box2d.js.

joex92 avatar joex92 commented on July 18, 2024

THanks @Birch-san, What about Box2D 2.4.1? Does 2.4.0 fixes issue #90 ?

from box2d.js.

Birch-san avatar Birch-san commented on July 18, 2024

@JxM-92 I don't know whether the small block allocator has been made any less leaky in newer versions, but the repro looks simple so should be easy to check.

I did actually try upgrading to Box2D v2.4.1, but it instantly encounters assertion failures at runtime (fails to assert that inertia must be positive). this is something that needs reporting as an issue. I briefly looked at the commits that had happened in the intervening time, and wonder whether it's related to reverting back to an older interpolation algorithm.

from box2d.js.

kripken avatar kripken commented on July 18, 2024

@Birch-san In that case, maybe a link in this repo could go to yours?

from box2d.js.

Birch-san avatar Birch-san commented on July 18, 2024

@kripken that sounds good, if you'd be okay with that?

from box2d.js.

kripken avatar kripken commented on July 18, 2024

@Birch-san Yeah, it sounds like a good idea to link to it from the readme, could help people find it.

If people find it useful maybe we can merge the repos, that's another option. But for now a link is a good simple step.

from box2d.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.