I found a lot of good stuff on how to rotate a mesh with camera direction, but Im having a big problem.
I made a tank, that has a turret that can be rotated. And I want to rotate this turret to look wherever the camera looks at… now… here is the catch: the turret rotates slower.
im rotating the turret like this:
turret.rotation.y += speed
but if the camera rotation.y reaches 3.14 it goes back down to -3.14 or vice versa.
and my turret will see that the camera rotation is not bigger anymore, so it will go back with turret.rotation -= speed, which is very annoying when there is clearly a few inches left from the turret to turn fully over, but it just starts to rotate the other way to reach -3.14
I hope you guys can help me.