I am experimenting in creating an authoritative server logic with the first person movement script. I am using the ws library to communicate between playcanvas client and a node server. I have some questions when implementing this movement logic to be simulated on the server.
How is it possible to implement this the correct way? Do I simulate the physics on the server side by installing ammojs on the server side? I am assuming moving the rigidbody and detecting collisions should all be done on the server side if so how do I move the player camera to match that movement as like in the first person movement script.