mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 07:27:07 +00:00
rogueviz::flocking:: fixed a bug in inital setup occuring sometimes
This commit is contained in:
parent
0bfeca4256
commit
ab3bb1b378
@ -502,6 +502,7 @@ namespace flocking {
|
||||
vertexdata& vd = vdata[i];
|
||||
// set initial base and at to random cell and random position there
|
||||
createViz(i, v[hrand(isize(v))], Id);
|
||||
vd.m->pat.T = Id;
|
||||
rotate_object(vd.m->pat.T, vd.m->ori, random_spin());
|
||||
apply_parallel_transport(vd.m->pat.T, vd.m->ori, xtangent(hrandf() / 2));
|
||||
rotate_object(vd.m->pat.T, vd.m->ori, random_spin());
|
||||
|
Loading…
Reference in New Issue
Block a user