Throw apply_self_sync overboard
This commit is contained in:
parent
4b8c017530
commit
51b87daa9f
@ -1064,9 +1064,8 @@ impl Player {
|
||||
let server_pos = character.get_global_position();
|
||||
let client_pos: Vector3 = data.transform.location.into();
|
||||
|
||||
let max_distance = (self.data.ping as f32 / 1000.)
|
||||
* character.dyn_bind().get_move_speed()
|
||||
+ character.dyn_bind().get_y_speed();
|
||||
let max_distance = self.data.ping as f32
|
||||
* (character.dyn_bind().get_move_speed() + character.dyn_bind().get_y_speed());
|
||||
|
||||
if client_pos.distance_to(server_pos) <= max_distance {
|
||||
character.dyn_bind_mut().apply_position(client_pos);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user