}
void initChainLights() {
clearLights();
for (int i = 0; i < BALLSNUM; i++) {
ChainLight light = new ChainLight(
rayHandler, RAYS_PER_BALL, null, LIGHT_DISTANCE, 1,
new float[]{-5, 0, 0, 3, 5, 0});
light.attachToBody(
balls.get(i),
MathUtils.random(0f, 360f));
light.setColor(
MathUtils.random(),
MathUtils.random(),
MathUtils.random(),
1f);
lights.add(light);