i want the camera follow my player but it’s can’t , here my code
update (dt) {
let target = this.Player.getPosition();
let curPos = this.node.getPosition();
curPos.lerp(target, 0.1, curPos);
this.node.setPosition(curPos);
},
update (dt) {
let target = this.Player.getPosition();
let curPos = this.node.getPosition();
curPos.lerp(target, 0.1, curPos);
this.node.setPosition(curPos);
},
I can ask engineering. What version of Creator?
Does this help? Tutorial: Cocos Creator 3.0: 3D camera follow and rotate
cocos creator 2.4
Did the tutorial help or do you still need help from engineering?
yeah i did it , thank you
Ok. I’ll close this topic.