AndEngine 中的手绘物理对象
我发现 “Chalk Ball 是使用 andengine 和 Box2D 作为物理引擎开发的”。
粉笔球是一款物理游戏。你可以用手指画一条线,它将成为一个物理对象。我怎样才能做出这样的效果呢?我是否需要使用粒子系统来创建自定义曲线?我怎样才能像物理对象一样构建它们? 或者它会是一个有很多点的多边形?
I found that
"Chalk Ball has been developed with andengine and Box2D as physics engine".
Chalk ball is a physics game. You can draw a line by your finger and it will be a physics object. How can I make such effect? Do I need to use particle systems to create custom curve lines? And how can I build them like physics objects?
Or it will be a polygon with many points?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我向 ChalkBall 的开发人员询问了该方法,他回答说:
“它是一系列矩形,但我提前警告您,AndEngine 有相当多的缺陷和奇怪之处。不确定您使用的是哪个版本,但是一月份的版本有很大缺陷,我不得不采取许多变通办法。”
I asked developer of the ChalkBall about the method and he answered:
"It is a sequence of Rectangles, but I am warning you in advance, AndEngine has quite some flaws and weirdness. Not sure of which version you are using, but the one of January is quite defective and I had to do many workarounds."