mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
force_telemetry interface
This commit is contained in:
parent
94ee1c08ee
commit
4a74d7a538
@ -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&) {
|
||||
}
|
||||
|
@ -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__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user