Introduction - If you have any usage issues, please Google them yourself
Control the role of rotation and movement: the script is added to the character controller component of game objects, role can control mobile and rotation, and keep the Z axis of rigid body not deflection.