I’m in the process of making a train, and I’m using entity interpolation for it. In a nutshell, the server sends data to the client telling it where the train should be and when, and the client lerps to that position.
My issue here is having my zombies stand on the train and move along with it. If the client is responsible for moving the train, then the train is basically non-existent on the server and zombies cannot stand on it unless I handle the zombies on the client too, which is questionable.
I want to prioritize the smooth movement of the train, which is why I’m interpolating it on the client. But this opens the issue as to how the zombies can board the train.
I’m also against the idea of using a physics-based train because of its unstable/unpredictable movement, considering my game has curved rails and requires precision to stop at stations.
What approach do you think I should take? Any feedback is appreciated. Thanks.