diff --git a/direct/src/deadrec/prediction.cxx b/direct/src/deadrec/prediction.cxx index 6b56626575..dafd0c755b 100644 --- a/direct/src/deadrec/prediction.cxx +++ b/direct/src/deadrec/prediction.cxx @@ -14,7 +14,10 @@ Prediction::~Prediction(void) { void Prediction::step(void) { } -void Prediction::new_telemetry(LPoint3f& t_pos) { +void Prediction::new_telemetry(LPoint3f&) { +} + +void Prediction::force_telemetry(LPoint3f&) { } LPoint3f Prediction::get_pos(void) const { @@ -37,7 +40,11 @@ void NullPrediction::step(void) { } void NullPrediction::new_telemetry(LPoint3f& t_pos) { - // _curr_v = _curr_p - t_pos; + _curr_v = t_pos - _curr_p; + _curr_p = t_pos; +} + +void NullPrediction::force_telemetry(LPoint3f& t_pos) { _curr_v = t_pos - _curr_p; _curr_p = t_pos; } @@ -53,5 +60,8 @@ LinearPrediction::~LinearPrediction(void) { void LinearPrediction::step(void) { } -void LinearPrediction::new_telemetry(LPoint3f& t_pos) { +void LinearPrediction::new_telemetry(LPoint3f&) { +} + +void LinearPrediction::force_telemetry(LPoint3f&) { } diff --git a/direct/src/deadrec/prediction.h b/direct/src/deadrec/prediction.h index 06f972631f..df346b27c6 100644 --- a/direct/src/deadrec/prediction.h +++ b/direct/src/deadrec/prediction.h @@ -19,6 +19,7 @@ PUBLISHED: virtual void step(void); virtual void new_telemetry(LPoint3f&); + virtual void force_telemetry(LPoint3f&); LPoint3f get_pos(void) const; LVector3f get_vel(void) const; @@ -31,6 +32,7 @@ PUBLISHED: virtual void step(void); virtual void new_telemetry(LPoint3f&); + virtual void force_telemetry(LPoint3f&); }; class LinearPrediction : public Prediction { @@ -40,6 +42,7 @@ PUBLISHED: virtual void step(void); virtual void new_telemetry(LPoint3f&); + virtual void force_telemetry(LPoint3f&); }; #endif /* __PREDICTION_H__ */