mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-16 05:14:06 +00:00
fixed spin_towards in nonisotropic-non-geodesic
This commit is contained in:
parent
ba94bc94b6
commit
de356a1679
@ -1003,7 +1003,7 @@ EX void rotate_object(transmatrix& Position, transmatrix& orientation, transmatr
|
|||||||
EX transmatrix spin_towards(const transmatrix Position, transmatrix& ori, const hyperpoint goal, int dir, int back) {
|
EX transmatrix spin_towards(const transmatrix Position, transmatrix& ori, const hyperpoint goal, int dir, int back) {
|
||||||
transmatrix T;
|
transmatrix T;
|
||||||
ld alpha = 0;
|
ld alpha = 0;
|
||||||
if(nonisotropic)
|
if(nonisotropic && nisot::geodesic_movement)
|
||||||
T = nisot::spin_towards(Position, goal);
|
T = nisot::spin_towards(Position, goal);
|
||||||
else {
|
else {
|
||||||
hyperpoint U = inverse(Position) * goal;
|
hyperpoint U = inverse(Position) * goal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user