Hi,
Sorry for the delay with the other questions (and with the SuperSprites)! But I have one more problem to solve before I can deal with those. Look at this playground:
https://www.babylonjs-playground.com/#1DSXMQ
I have a FollowCamera for my player character and I would like to be able to control the camera pitch, i.e. rotation around the X axis. Rotation around Y works perfectly well, the camera just follows the rotation of the player mesh. Only the X axis is the issue.
I know that the FollowCamera doesn’t support setting the rotation property directly (or does it?), so I’m using the upVector property and I just rotate BABYLON.Vector3.Up() using a rotation matrix. As you can see in the log, I get plausible values, but all the camera does is flip upside down suddenly. What’s even weirder is that the Z axis rotation works like I would expect it to. Y axis does nothing, but that’s also to be expected.
What am I missing here? Thanks in advance!