闪存、AS3 -> TweenLite + Box2D - 它们结合了吗?

发布于 2024-11-28 04:05:17 字数 213 浏览 8 评论 0原文

好吧,想象一下这样的场景:我有 3 个物体,悬挂在“天花板”上,每个物体都有一根绳子(在 b2World 内)。他们肩并肩地互相碰触。
每个对象都有一个 Flash Mouse_Over 事件,使自己使用 tweenlite 放大,而 Mouse_Out 事件则缩小到原始大小。

我的问题是:其他两个对象是否使用 Box2D 电机响应那些 TweenLite 动画?

谢谢

Well, imagine the scenario where i have 3 objects, hanging from the "ceiling", each one by a string (inside a b2World). They are touching each other side by side.
Each object has a Flash Mouse_Over event that makes itself use tweenlite to scale bigger, and Mouse_Out it scales back to the original size.

My question is: do the other two objects respond to those TweenLite animations, using the Box2D motor?

Thanks

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

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

发布评论

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

评论(1

晌融 2024-12-05 04:05:17

答: 有点。

Box2D 对象不会缩放。但你可以让他们看起来确实如此。

这是一个很棒的教程,将详细指导您如何做到这一点:
http://www.emanueleferonato.com/ 2009/12/16/scaling-objects-with-box2d-part-2/

Answer: Sort of.

Box2D objects do not scale. But you can make it appear that they do.

Here is a great tutorial walking you through exactly how to do that:
http://www.emanueleferonato.com/2009/12/16/scaling-objects-with-box2d-part-2/

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