mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-03 19:27:54 +00:00
in set_view, trust rightward
This commit is contained in:
@@ -2944,9 +2944,6 @@ EX void set_view(hyperpoint camera, hyperpoint forward, hyperpoint upward) {
|
|||||||
upward /= hypot_d(3, upward);
|
upward /= hypot_d(3, upward);
|
||||||
|
|
||||||
hyperpoint rightward = (forward ^ upward);
|
hyperpoint rightward = (forward ^ upward);
|
||||||
rightward -= (forward|rightward) * forward;
|
|
||||||
rightward -= (upward|rightward) * upward;
|
|
||||||
rightward /= hypot_d(3, rightward);
|
|
||||||
|
|
||||||
transmatrix rotator = Id;
|
transmatrix rotator = Id;
|
||||||
rotator[2] = forward;
|
rotator[2] = forward;
|
||||||
|
Reference in New Issue
Block a user