We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
Box2d 只是一个物理引擎,它在屏幕上不显示任何内容。它只是进行物理模拟。该模拟结果如何在屏幕上表示完全取决于您:它可以是打印在屏幕上的位置流、位置与 b2Body 的位置同步的图像或您喜欢的任何其他内容。
所以你可以阅读任何你喜欢的 Box2d 教程(很多可以在 google 中找到)。我建议您从 box2d 附带的 box2d 手册开始。
Box2d is just a physics engine, it does present nothing on the screen. It just makes physics simulation. How this simulation results will be represented on the screen is totally up to you: it can be a stream of positions printed on the screen, an image which position is synced with b2Body's position or anything else you like.
So you can read any Box2d tutorial you like (a lot can be found in google). I suggest you starting with box2d manual coming with box2d.