首页 > 其他 > 详细

AndEngine IEntity之旋转

时间:2015-01-09 14:04:37      阅读:272      评论:0      收藏:0      [点我收藏+]
/**
         * 测试旋转的方法 旋转是绕着实体的中心点进行旋转,旋转角度(角度而不是弧度)大于0 表示顺时针旋转
         */
        Line line1=new Line(200,400,400,400,getVertexBufferObjectManager());
        scene.attachChild(line1);
        Line line2=new Line(200,400,400,400,getVertexBufferObjectManager());
        line2.setRotation(45);
        scene.attachChild(line2);

效果如下:

技术分享

AndEngine IEntity之旋转

原文:http://www.cnblogs.com/xushihai/p/4212998.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!