mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
how about incrementing time?
This commit is contained in:
parent
506359bd0b
commit
600c6f60c0
@ -422,10 +422,13 @@ inline static void correction_lerp(void) {
|
||||
prev_pos = my_pos;
|
||||
save_pos = target_pos;
|
||||
} else {
|
||||
// half second lerp
|
||||
float tmp = time * 2.;
|
||||
LVector3f vtmp = save_pos - prev_pos;
|
||||
my_pos = (tmp * vtmp) + prev_pos;
|
||||
if (time < 0.5) {
|
||||
// half second lerp
|
||||
float tmp = time * 2.;
|
||||
LVector3f vtmp = save_pos - prev_pos;
|
||||
my_pos = (tmp * vtmp) + prev_pos;
|
||||
time += ClockObject::get_global_clock()->get_dt();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (new_telemetry) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user