如何创建“圆圈"?在Box2D中? [英] How to create "circles" in Box2D?

查看:168
本文介绍了如何创建“圆圈"?在Box2D中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要视频中带有box2d的圆圈. http://goo.gl/39Ff3

I want the circle with box2d in video. http://goo.gl/39Ff3

推荐答案

您是否已检查此网站?似乎有很多教程.

Did you check this site? There seems to be much tutorials.

也不要忘记手册,尤其是 4.2圆形.

And don't forget the manual especially 4.2 Circle Shapes.

圆形>
圆形具有位置和半径.圆圈是实心的.您不能使用圆形制作空心圆形.

Circle Shapes
Circle shapes have a position and radius. Circles are solid. You cannot make a hollow circle using the circle shape.

   b2CircleShape circle;
   circle.m_p.Set(2.0f, 3.0f);
   circle.m_radius = 0.5f

这篇关于如何创建“圆圈"?在Box2D中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆