Rotation of ArcRotateCamera not working

Hi everyone,

I am trying to get my ArcRotateCamera’s upVector to face in the -Y direction by setting it to Vector3(0, -1, 0) but for some reason, it doesn’t work. I’ve tried negative values for the x and z values and they work fine. It doesn’t give an error but also doesn’t display anything. I thought by setting noRotationConstraint = true, the issue would be solved but it no luck. I have a playground set up:

https://playground.babylonjs.com/#SRZRWV#537

If anyone can provide me with a solution, I’d really appreciate it. Thanks in advance.

adding @Cedric :slight_smile:

Let me take a look.

I’ve found what’s causing that. I’ll let you know when my PR is out.

PR is live Fix RotationAlignToRef with opposite vectors by CedricGuillemet · Pull Request #10340 · BabylonJS/Babylon.js · GitHub