Why my character Controller of capsule will tilt when using CinneMachine(virtual)

Hi, I have learning to use character controller to move a capsule.

And I have a weird problem in using Chinnemachine to rotate camera.

The problem is when I turn to left or right of my capsule, the capsule won’t tilt

But When I move straight to foward or backward, my capsule will tilt as the file of photos attached in this article.

I can’t figure out what is going on here? “”"Turning to the right or left won’t tilt, but forward or backward will tilt.?

Does anyone encounter the same problem?

By the way I use the follwoing scripts to make my capusle to rotate.
Quaternion freeRotation = Quaternion.LookRotation(lookRotation,Vector3.up);

If lookRotation is not parallel to the plane, then the capsule will tilt. This is not related to Cinemachine.

1 Like

OK thanks I will try to find the answer