From a3af3b052c056c69ada1ce0062531dce708504c4 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Thu, 21 Dec 2006 09:58:46 +0000 Subject: [PATCH] set important smoothmover vars when setting lag --- direct/src/distributed/DistributedSmoothNode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/distributed/DistributedSmoothNode.py b/direct/src/distributed/DistributedSmoothNode.py index ec8892a1a5..3a71623224 100644 --- a/direct/src/distributed/DistributedSmoothNode.py +++ b/direct/src/distributed/DistributedSmoothNode.py @@ -60,6 +60,10 @@ def activateSmoothing(smoothing, prediction): SmoothMover.setSmoothMode(SmoothMover.SMOn) SmoothMover.setPredictionMode(SmoothMover.PMOff) SmoothMover.setDelay(Lag) + # Set these other variables relative to the lag factor + SmoothMover.setExpectedBroadcastPeriod(Lag) + SmoothMover.setMaxPositionAge(Lag * 1.25) + SmoothMover.setResetVelocityAge(Lag * 1.5) else: # No smoothing, no prediction. SmoothMover.setSmoothMode(SmoothMover.SMOff)