+ float t = (float)j / (float)(ROPE_MASSES - 1.0f);
+ cgm_vlerp(&mass->p, ganchor + i, manchor + i, t);
+ mass->m = ROPE_MASSES_MASS;
+
+ if(j == 0) {
+ rsim_freeze_rope_mass(rope, rope->masses + i * ROPE_MASSES); /* freeze first mass */
+ } else {
+ rsim_set_rope_spring(rope, midx, midx - 1, ROPE_K, RSIM_RLEN_DEFAULT);
+ }