Flash CS4绕Z轴旋转舞台中心不变形,可能吗?
我有三个盒子分别绕着它们的 Z 轴旋转。我想做的是让它们围绕各自的 Z 轴旋转,如果我将它们移离舞台中心,则不会变形。
addEventListener(Event.ENTER_FRAME, rotateBoxes);
function rotateBoxes(e:Event):void
{
box1.rotationY-=10;
box2.rotationY+=10;
box3.rotationY-=10;
}
这里的例子 http://www.hupcapstudios.com/tween1.swf
是否有内置参数如...
box1.globalPerspective = false;
绕 x 轴旋转
I've got three boxes rotating around their Z axis respectively. What I'm trying to do is keep them rotating around their respective Z axis without distorting if I move them away from the center of my stage.
addEventListener(Event.ENTER_FRAME, rotateBoxes);
function rotateBoxes(e:Event):void
{
box1.rotationY-=10;
box2.rotationY+=10;
box3.rotationY-=10;
}
example here http://www.hupcapstudios.com/tween1.swf
is there a built in parameter like...
box1.globalPerspective = false;
it's more noticeable rotating around the x axis
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将剪辑的透视投影设置为其中心......请参阅:
http://help.adobe.com/ en_US/AS3LCR/Flash_10.0/flash/geom/PerspectiveProjection.html#projectionCenter
如果剪辑的注册点位于其中心,则类似这样的内容应该有效:
You need to set the perspectiveProjection of your clip to its center... see:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/geom/PerspectiveProjection.html#projectionCenter
Something like this should work if the registration point of your clip is at its center: