Entity won't rotate 360 degrees

So I’m trying to create a third person camera by making the player entity set its rotation to that of the camera, and it works for 0 to 90 degrees and 0 to -90 degrees, but for some reason when the camera rotates past that the player starts to rotate the opposite direction. When I manually set the Euler Angle of the player to something like 270 or 180, it works fine, but not if its getting the camera’s rotation.

https://playcanvas.com/editor/scene/1615972

We have a few topics that explain this better: