#How to use Physics read-only on networked Client

1 messages · Page 1 of 1 (latest)

rigid veldt
#

My client has only interpolated physics bodies. But I want to make raycasts on client side to generate input.
Is there a way to trigger PhysicsWorld to only build without running?

turbid sluice
#

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.

rigid veldt
#

point is delay is really troubling, because it's related to input

turbid sluice
rigid veldt
#

so if user clicks some small unit and it's not there on server...

rigid veldt
#

so Client can rely on physics world to do input