Use ViewHelper when my camera up is zAxis (0,0,1)

I’m using the viewHelper in my project, but my camera up direction is along zAxis. In this case, the viewHelper cannot work properly.

So which part should I change to adapt it in viewHelper component?

You probably have to change the following line:

Since the up vector is (0,0,1) in your case, the forward vector needs to be different. It can’t have the same value. Assuming your objects look along the positive Y axis by default, change the value to (0,1,0).

I tried this, but it doesn’t work

Do you mind sharing your current work of progress?

thanks. I find the problem, all of the _targetQuaternion, _dummy.up should be changed.