Camera is getting a Z rotation?

For some reason when setting the camera on an offset from center at first and running set target is causing it to have a weird z rotation.

When you look around you will notice some odd movement (like tilting and just unnatural looking)

But then if I manually set the rotation.z to 0 after the look at the inputs and look controls behave correctly.

I don’t remember this being an issue is this a regression?

Can you repro with an older version? You can change the version in the dropdown of the playground:

I made some camera changes recently that has potential to break something, but I’m not sure what you mean about the odd movement. I don’t see any difference between 7.54.2 and the latest. Maybe you can post a quick video or describe the odd movement more?

For sure, let me check and I can post a video here!

Oh, never mind, I see what you are talking about now. Let me investigate.

Yup only happens on latest, so its for sure a regression. Thank you!

Fixed here: Fix regression with TargetCamera.setTarget by bghgary · Pull Request #16728 · BabylonJS/Babylon.js

Thanks for catching this regression!