add client prediction
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
extends State
|
||||
|
||||
func process_physics(delta: float) -> State:
|
||||
if not multiplayer.is_server():
|
||||
if not multiplayer.is_server() and (multiplayer.get_unique_id() != subject.player_id or not subject.client_prediction):
|
||||
return
|
||||
|
||||
var input_direction = %Input.direction
|
||||
|
||||
Reference in New Issue
Block a user