1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-27 02:20:36 +00:00

fixed face_the_player in VR

This commit is contained in:
Zeno Rogue 2024-03-24 11:14:28 +01:00
parent 007a111eab
commit 4a8eb08340

View File

@ -771,9 +771,10 @@ EX shiftmatrix face_the_player(const shiftmatrix V) {
if(vrhr::enabled) { if(vrhr::enabled) {
shiftpoint h = tC0(V); shiftpoint h = tC0(V);
hyperpoint uh = unshift(h); hyperpoint uh = unshift(h);
return shiftless(cspin90(1, 2) * lrspintox(cspin90(2, 1) * uh) * xpush(hdist0(uh)) * cspin90(0, 2) * spin270()); return shiftless(cspin90(1, 2) * rspintox(cspin90(2, 1) * uh) * xpush(hdist0(uh)) * cspin90(0, 2) * spin270());
} }
#endif #endif
return rgpushxto0(tC0(V)); return rgpushxto0(tC0(V));
} }