mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
rogueviz::smoothcam:: correctly working front_distance and up_distance
This commit is contained in:
parent
c312e02a59
commit
f923b45973
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user