mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-07 00:44:08 +00:00
vr:: better face_the_player
This commit is contained in:
parent
f224b2fc70
commit
db00cf3ae4
@ -736,6 +736,13 @@ EX shiftmatrix face_the_player(const shiftmatrix V) {
|
|||||||
if(hybri) return V * zpush(cos(ptick(750)) * cgi.plevel / 16);
|
if(hybri) return V * zpush(cos(ptick(750)) * cgi.plevel / 16);
|
||||||
transmatrix dummy; /* used only in prod anyways */
|
transmatrix dummy; /* used only in prod anyways */
|
||||||
if(nonisotropic) return shiftless(spin_towards(unshift(V), dummy, C0, 2, 0));
|
if(nonisotropic) return shiftless(spin_towards(unshift(V), dummy, C0, 2, 0));
|
||||||
|
#if CAP_VR
|
||||||
|
if(vrhr::enabled) {
|
||||||
|
shiftpoint h = tC0(V);
|
||||||
|
hyperpoint uh = unshift(h);
|
||||||
|
return shiftless(rspintox(uh) * xpush(hdist0(uh)) * cspin(0, 2, 90*degree));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return rgpushxto0(tC0(V));
|
return rgpushxto0(tC0(V));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user