Instead of using the camera target, parent the camera to your character root and position it accordingly: Physics V3 Simple scene with Aggregate | Babylon.js Playground (babylonjs.com)
I detached the camera controls, since what we want of the mouse movement is to rotate the character, not the camera, you just have to add that part
In this case, the camera’s rotation zoom and so on is gone.
I want to keep these functions
I added this code, and the characters can always face the front.
But why is-1.6, I don’t understand, this value is experimented by me, is there any more correct way of writing?
And after adding this code, when holding w, i can’t move forward
You can implement the zoom manually