#How to use Physics read-only on networked Client
1 messages · Page 1 of 1 (latest)
You can add a predicted object anywhere in your game but far away from realistic gameplay (like z = -100 or deep underground). This will force the client to rebuild the physics world every predicted tick which could be very costly just to get client side raycasts. Alternatively, you can send raycast requests to the server and the server can send back the results, with some delay.
can that predicted object be static?
point is delay is really troubling, because it's related to input
yea, so long as it's predicted in the ghost component. Do note, the kinematics (all the other objects) will cause physics rebuild every frame.
so if user clicks some small unit and it's not there on server...
that's the goal though
so Client can rely on physics world to do input