mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-13 11:14:30 +00:00
rogueviz::smoothcam:: correctly working front_distance and up_distance
This commit is contained in:
1 parent
c312e02a59
commit
f923b45973
1 file changed
+2
-2
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user