Why does synchronizing the player's position in onBeforeRenderObservable cause the controller to lag instead?

Hello, everyone

While using PhysicsCharacterController, synchronizing the player and controller positions in the onBeforeRenderObservable will cause the controller’s position to lag. This effect can be seen to some extent in the PG, but in my local project, it becomes very pronounced.

After entering the PG, you need to first open the inspector, then click the debug tab, and enable physics. Then, by pressing A and D to move left and right, you can see that the positions of the player and the controller are not synchronized.

Babylon.js Playground - #ATDPS7#2

This is the situation in my project:

Use onBeforePhysicsObservable :+1: