I have a simple code with a cube that I want to rotate and view from different angles. Everything looks fine but the TrackballControls aren’t working. Probably, the problem must be really easy to solve but I can’t find the error in the code. Can you help me? I will be really grateful if you help me to spot the error.
You can’t let the position of controls.target equals to camera.position. And further more, you have to render the view every time when camera’s matrix changed in TrackballControls.