Why do the lines disappear if you move them from the center of the scene

Hey welcome back :slight_smile:

so this is because when we “morph” a line from a previous one we do not automatically update the bounding box, so at some point the lines will disappear because they will be removed by the frustum culling

Just add this line to fix your problem:

links_arr[i].geom.alwaysSelectAsActiveMesh = true;

Example: https://playground.babylonjs.com/#3VHED7#3

3 Likes