1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-28 14:08:40 +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) if(j == 0)
h = tC0(f.V); h = tC0(f.V);
if(j == 1) { 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) { 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]); values.push_back(h[i]);
} }