mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-22 23:17:04 +00:00
adjusted RogueViz to name changes
This commit is contained in:
parent
176d5b76c1
commit
080e853364
@ -92,7 +92,7 @@ namespace flocking {
|
||||
vertexdata& vd = vdata[i];
|
||||
auto m = vd.m;
|
||||
|
||||
apply_parallel_transport(m->at, m->ori, xtangent(0.01)); // max_speed * d));
|
||||
apply_shift_object(m->at, m->ori, xtangent(0.01)); // max_speed * d));
|
||||
|
||||
fixmatrix(m->at);
|
||||
|
||||
@ -200,7 +200,7 @@ namespace flocking {
|
||||
oris[i] = m->ori;
|
||||
rotate_object(pats[i], oris[i], alphaspin);
|
||||
|
||||
apply_parallel_transport(pats[i], oris[i], xtangent(vels[i] * d));
|
||||
apply_shift_object(pats[i], oris[i], xtangent(vels[i] * d));
|
||||
fixmatrix(pats[i]);
|
||||
|
||||
/* RogueViz does not correctly rotate them */
|
||||
@ -522,11 +522,11 @@ bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
|
||||
|
||||
if(swarm) {
|
||||
rotate_object(vd.m->pat.T, vd.m->ori, spin(angle));
|
||||
apply_parallel_transport(vd.m->pat.T, vd.m->ori, xtangent(i * -0.015));
|
||||
apply_shift_object(vd.m->pat.T, vd.m->ori, xtangent(i * -0.015));
|
||||
}
|
||||
else {
|
||||
rotate_object(vd.m->pat.T, vd.m->ori, random_spin());
|
||||
apply_parallel_transport(vd.m->pat.T, vd.m->ori, xtangent(hrandf() / 2));
|
||||
apply_shift_object(vd.m->pat.T, vd.m->ori, xtangent(hrandf() / 2));
|
||||
rotate_object(vd.m->pat.T, vd.m->ori, random_spin());
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ bool advance_walkers(int delta) {
|
||||
}
|
||||
else {
|
||||
hyperpoint dir = random_spin() * xtangent(step_size);
|
||||
apply_parallel_transport(w.T, w.ori, dir);
|
||||
apply_shift_object(w.T, w.ori, dir);
|
||||
}
|
||||
fixmatrix(w.T);
|
||||
hyperpoint h1 = tC0(w.T);
|
||||
|
@ -495,10 +495,10 @@ void handle_animation(ld t) {
|
||||
if(j == 0)
|
||||
h = tC0(f.V);
|
||||
if(j == 1) {
|
||||
h = tC0(parallel_transport(f.V, f.ori, ztangent(f.front_distance)));
|
||||
h = tC0(shift_object(f.V, f.ori, ztangent(f.front_distance)));
|
||||
}
|
||||
if(j == 2) {
|
||||
h = tC0(parallel_transport(f.V, f.ori, ctangent(1, -f.up_distance)));
|
||||
h = tC0(shift_object(f.V, f.ori, ctangent(1, -f.up_distance)));
|
||||
}
|
||||
prepare_for_interpolation(h);
|
||||
values.push_back(h[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user