Cocos2d-x提供了一中根据球面坐标轨迹旋转的方式CCOrbitCamera

参数分别为旋转的时间,起始半径,半径差,起始z角,旋转z角差,起始x角,旋转x角差,用法如下


同时该用法也引出了一个问题就是,子节点将继承父节点的动作,也就是说在上述sprite自转的时候,它还有p的公转。以下演示了sp3和sp4作为sp1和sp2的子节点,将继承sp1和sp2的动作。

刚开始研究此引擎,如有错误之处,希望大家多多指正 http://zhongyi.sina.com/zx/news/320860.shtml http://zhongyi.sina.com/zx/news/320856.shtml http://zhongyi.sina.com/zx/news/320854.shtml http://zhongyi.sina.com/zx/news/320853.shtml http://zhongyi.sina.com/zx/news/320850.shtml http://zhongyi.sina.com/zx/news/320845.shtml http://zhongyi.sina.com/zx/news/320843.shtml http://zhongyi.sina.com/zx/news/320840.shtml http://zhongyi.sina.com/zx/news/320838.shtml http://zhongyi.sina.com/zx/news/320835.shtml http://zhongyi.sina.com/zx/news/320834.shtml http://zhongyi.sina.com/zx/news/320830.shtml http://zhongyi.sina.com/zx/news/320828.shtml http://zhongyi.sina.com/zx/news/320826.shtml http://zhongyi.sina.com/zx/news/320825.shtml http://zhongyi.sina.com/zx/news/320818.shtml http://zhongyi.sina.com/zx/news/320813.shtml http://zhongyi.sina.com/zx/news/320808.shtml http://zhongyi.sina.com/zx/news/320803.shtml http://zhongyi.sina.com/zx/news/320799.shtml