rogueviz:: adjusted flocking to interface changes

This commit is contained in:
Zeno Rogue 2023-01-29 17:03:53 +01:00
parent b11e270eb5
commit 80c0b4bb0c
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ namespace flocking {
h += h1;
}
if(cnt) {
h = normalize_flat(h);
h = cgi.emb->normalize_flat(h);
if(mproduct) h = orthogonal_move(h, lev / cnt);
View = inverse(actual_view_transform) * gpushxto0(h) * actual_view_transform * View;
shift_view(ztangent(follow_dist));