Quantcast
Channel: Cocos中文社区 - 最新帖子
Viewing all articles
Browse latest Browse all 494966

求旋转角度的问题

$
0
0
    this.currentP = this.node.position;
    var p = this.currentP.sub(this.lastP);
    var rotationAngle = cc.pToAngle(p);
    this.node.rotation = rotationAngle;
    this.lastP = this.currentP;

这样处理还是不对。。。。。再次求教~


Viewing all articles
Browse latest Browse all 494966

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>