I try to fix the Y-axis and X-axis in a movement camera

Hi, I’m trying to set a camera so that when it moves it always looks on two different axes with the attribute lookAt (this.camera.lookAt(this.pivotEjeX.getPosition().x, this.pivotEjeY.getLocalPosition().y, this.camera.getLocalPosition().z); ) but it doesn’t work well when you try to set more than one object on each axis, could someone help me?

Hi @isvaku,

Can you post a sample project of the progress you’ve made so far?

It seems it will be simpler to take a look directly.

give me a moment and I’ll do a test project.

1 Like

here is a test scene is the script cameraMovement.js, it can only be moved in the mobile version, and thanks for your time.

1 Like