2d game physics?

前端 未结 11 652
难免孤独
难免孤独 2020-12-28 19:53

Can anyone point me to a library for 2D game physics, etc for programming gravity, jumping actions, etc for a 2d platform/sidescrolling game ? Or could you suggest some algo

11条回答
  •  难免孤独
    2020-12-28 20:34

    Your best bet is most likely Box2D. It does 2D physics, has tons of options, and is very easy to integrate into an existing project. It does CCD by default for fixed bodies, but any rigid body can be selectively included in the CCD calculation.

提交回复
热议问题