1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-23 17:04:48 +00:00

dialog:: made dialog matrix more intuitive for anims::movement_angle

This commit is contained in:
Zeno Rogue
2023-08-14 10:52:17 +02:00
parent 9ab2b2bbd8
commit ea193d23b1
2 changed files with 9 additions and 7 deletions

View File

@@ -591,7 +591,7 @@ EX namespace dialog {
vector<hyperpoint> pts;
for(int a=0; a<dim; a++) {
hyperpoint h = C0; h[a] = r;
pts.push_back(rot_inverse(T.get()) * h);
pts.push_back(T.get() * h);
}
flat_model_enabler fme;
@@ -612,7 +612,7 @@ EX namespace dialog {
queuecurve(V, cols[a], 0, PPR::LINE);
}
if(dim == 3) for(int a=0; a<dim; a++) {
auto pt = pts[a]; ld val = pt[2] * vid.fsize / r / 5;
auto pt = pts[a]; ld val = -pt[2] * vid.fsize / r / 5;
curvepoint(hyperpoint(pt[0], pt[1]+val, 1, 1));
curvepoint(hyperpoint(pt[0]-val, pt[1]-val*sqrt(3)/2, 1, 1));
curvepoint(hyperpoint(pt[0]+val, pt[1]-val*sqrt(3)/2, 1, 1));