Code Monkey home page Code Monkey logo

Comments (6)

roig avatar roig commented on May 12, 2024 1

Have you checked http://chipmunk-physics.net/ ? I think it's more flexible than Box2D.

from magnum-integration.

mosra avatar mosra commented on May 12, 2024

Box2D would be awesome :) I also don't see Bullet matching to 2D very well.

The use case is probably a bit different, so I don't mind having a completely different API from what's done for Bullet. Makes more room for experiments.

from magnum-integration.

Squareys avatar Squareys commented on May 12, 2024

Bullet does allow for 2D physics (see their example here), you basically register some 2D collision algorithms to the collision dispatcher, but still have to use 3D vectors it seems.

Box2D would indeed be awesome, though :D

from magnum-integration.

 avatar commented on May 12, 2024

@mosra @Squareys Looks like the proper way forward would be to embed Box2D then; it doesn't look any harder than Bullet, and it is probably more optimized towards 2D physics.

from magnum-integration.

mosra avatar mosra commented on May 12, 2024

Just for the record, a very simple Box2D example is now in the examples repository. This was done directly, without creating any integration library. Potential integration lib could be based on what the example does (conversion of math types first, for example).

from magnum-integration.

Squareys avatar Squareys commented on May 12, 2024

Btw, for reference: I remember the way to do 2D in bullet is to add a bunch of contstraints to the Z axis of all the rigid bodies.

from magnum-integration.

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.