Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

TargetCamera's rotation issue

$
0
0

hi,

i'm working with FreeCamera, which is a TargetCamera.

if you move the mouse left or right, the camera rotates according to your movement, around y axis by default; but if you change the upVector, it rotates according the old configuration!

in my opinion, cameraRotation should be applied depending to the actual upVector, not the defaultUpVector, isn't right?

looking for usages of member upVector in TargetCamera, i see that it's updated only in _updateCameraRotationMatrix function and used only in _getViewMatrix.

furthermore, it's normalized in setTarget function, but it isn't used there (defaultUpVector is used in its place).

thanks

 


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>