mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-09 07:30:09 +00:00
rogueviz:: adjusted flocking to interface changes
This commit is contained in:
parent
b11e270eb5
commit
80c0b4bb0c
@ -274,7 +274,7 @@ namespace flocking {
|
|||||||
h += h1;
|
h += h1;
|
||||||
}
|
}
|
||||||
if(cnt) {
|
if(cnt) {
|
||||||
h = normalize_flat(h);
|
h = cgi.emb->normalize_flat(h);
|
||||||
if(mproduct) h = orthogonal_move(h, lev / cnt);
|
if(mproduct) h = orthogonal_move(h, lev / cnt);
|
||||||
View = inverse(actual_view_transform) * gpushxto0(h) * actual_view_transform * View;
|
View = inverse(actual_view_transform) * gpushxto0(h) * actual_view_transform * View;
|
||||||
shift_view(ztangent(follow_dist));
|
shift_view(ztangent(follow_dist));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user