Immediate Client Responsiveness w/ Rapidly Changing Values

So right now I’m in the proccess off creating a system where the server tells clients to create an object and then this object is rendered only on the client and the server holds values like position, velocity and gravity for this object and does the physics calculations serverside then the clients get the position of the object and interpolates it, this is working great, but basically I’m creating a mechanic where your able to hit this object and then of course tell the server the direction you’ve hit it then it’ll do some physics stuff to calculate the new position like I said this works grea… but the thing im trying to accomplish is that I’m trying to have it so when the clients hit their own ball they see it immediately change direction; rather than having to wait for the server to eventually whenever that is change the direction of the ballon… but the problem is that I’m recieving the information about every balls state every frame so I can’t really manipulate the clients ballon velocity, gravity and position without it being overrided

Not exactly looking for code but just some potential solutions?

So basically I had to create a table that held that current gravity, velocity and position for that client’s ballon at that exact frame it was hit, then on the client I’d do the calculations that are on the server on the client for just that players ballon; then once that copy with all the properties was available id provide immediate feedback, now just need to tell the server the new velocity and position of the ball which is risky but with sanity checks from the server im sure itll be fine

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.