如何使物体在视图中飞来飞去

发布于 2024-08-11 19:54:55 字数 281 浏览 3 评论 0原文

怎么可能让一些物体飞来飞去并在视图的尽头碰撞并相互碰撞。

第二步将通过摇动来增加物体的加速度。

我还没有找到教程或开始的步骤。

非常感谢您的帮助:)

这是我的图像的图片(只有静态)

http: //picfront.org/d/ZdSvK9G8D/flying_circles.jpg

How is it possible to let some objects fly around and bumb at the end of the view and collide on each other.

The second step would add acceleration of the objects by shaking.

I haven't found a tutorial yet or some step to begin at.

thanks a lot for your help :)

Heres a picter of what i image(only a still)

http://picfront.org/d/ZdSvK9G8D/flying_circles.jpg

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

微暖i 2024-08-18 19:54:55

查看 Cocos2d for iPhone。谷歌会帮你找到很多关于这个框架的教程。

Take a look at Cocos2d for iPhone. Google will help you find many tutorials for this framework.

扛起拖把扫天下 2024-08-18 19:54:55

您需要搜索的是有关“碰撞检测”的教程。 Cocos2D 是一个很棒的地方,但您还需要一个物理引擎 - Box2d 和 Chipmunk 都是可以使用的物理库。 youtube 上有一些关于 cocos2d 教程和物理引擎的好视频,看看这是否是您正在寻找的。

马修

What you need to search for are tutorials on "Collision Detection." Cocos2D is a great place but you will also need a physics engine - Box2d and Chipmunk are both physics libraries that can be used. Some good videos on youtube for cocos2d tutorials and physics engines to see if this is what you are looking for.

Matthew

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文