mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-26 07:02:49 +00:00
rogueviz:: smoothcam:: fixed to use smProduct in product spaces
This commit is contained in:
parent
80bfed25fe
commit
facac688a0
@ -640,11 +640,12 @@ void handle_animation(ld t) {
|
|||||||
hyperpoint h;
|
hyperpoint h;
|
||||||
if(j == 0)
|
if(j == 0)
|
||||||
h = tC0(f.V);
|
h = tC0(f.V);
|
||||||
|
auto sm = (hyperbolic || euclid || sphere) ? smIsotropic : gproduct ? smProduct : smGeodesic;
|
||||||
if(j == 1) {
|
if(j == 1) {
|
||||||
h = tC0(shift_object(f.V, f.ori, ztangent(f.front_distance), (hyperbolic || euclid || sphere) ? smIsotropic : smGeodesic));
|
h = tC0(shift_object(f.V, f.ori, ztangent(f.front_distance), sm));
|
||||||
}
|
}
|
||||||
if(j == 2) {
|
if(j == 2) {
|
||||||
h = tC0(shift_object(f.V, f.ori, ctangent(1, -f.up_distance), (hyperbolic || euclid || sphere) ? smIsotropic : smGeodesic));
|
h = tC0(shift_object(f.V, f.ori, ctangent(1, -f.up_distance), sm));
|
||||||
}
|
}
|
||||||
prepare_for_interpolation(h);
|
prepare_for_interpolation(h);
|
||||||
values.push_back(h[i]);
|
values.push_back(h[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user