闪存、AS3 -> TweenLite + Box2D - 它们结合了吗?
好吧,想象一下这样的场景:我有 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答: 有点。
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/