1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

rogueviz::smoothcam:: correctly working front_distance and up_distance

This commit is contained in:
Zeno Rogue 2021-04-07 18:04:34 +02:00
parent c312e02a59
commit f923b45973

View File

@ -410,10 +410,10 @@ void handle_animation(ld t) {
if(j == 0)
h = tC0(f.V);
if(j == 1) {
h = tC0(parallel_transport(f.V, f.ori, zpush0(f.front_distance)));
h = tC0(parallel_transport(f.V, f.ori, ztangent(f.front_distance)));
}
if(j == 2) {
h = tC0(parallel_transport(f.V, f.ori, ypush0(-f.up_distance)));
h = tC0(parallel_transport(f.V, f.ori, ctangent(1, -f.up_distance)));
}
values.push_back(h[i]);
}