Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88774

Camera摄像机旋转无效

$
0
0

@RiverX 写道:

  • Creator 版本:2.2.2

  • 目标平台: web

  • 之前哪个版本是正常的 :2.2.0

  • 出现概率:100%

  • 额外线索:

onLoad () {
cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN,this.down,this);

    console.log(">>>>>>"+this.camera.node.angle);

}
private oula:number = 0;
private down(event){
    if(event.keyCode == 37){
        this.oula +=1;
    }
    if(event.keyCode == 39){
        this.oula -=1;
    }
    this.camera.node.x = this.oula;
    this.camera.node.eulerAngles = cc.v3(0, this.oula, 0);
    this.camera.node.angle = this.oula;

    console.log(this.oula);
    
    
}

版本升级后,eulerAngles 和 angle 都无效 只有node生效

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88774

Trending Articles



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