Hello everyone!
I get the camera’s upVector by camera.upVector
, and it is Vector3(0, 1, 0) by default. But when I read the source code in targetCamera.ts
, I find that the function _rotateUpVectorWithCameraRotationMatrix()
will return the _cameraRotationMatrix.m[4]
,_cameraRotationMatrix.m[5]
,_cameraRotationMatrix.m[6]
as the target upVector, which is not equal with original upvector. Here is the PG. This playground will alert
and
I don’t know where is wrong. Thanks first.