- v2_muladds( fish->physics_v, (v2f){ 0.0, -9.8f }, vg_time_delta, fish->physics_v );
- v2_muladds( fish->physics_co, fish->physics_v, vg_time_delta, fish->physics_co );
+ case 13:
+ if( fish->dir[0] == 1 )
+ curve = curve_12;
+ else
+ curve = curve_9;
+ break;
+ case k_cell_type_con_r: curve = curve_1;
+ if( fish->dir[0] == 1 ) t = ti;
+ break;
+ case k_cell_type_con_l: curve = curve_4;
+ if( fish->dir[0] == -1 ) t = ti;
+ break;
+ case k_cell_type_con_u: curve = curve_2;
+ if( fish->dir[1] == 1 ) t = ti;
+ break;
+ case k_cell_type_con_d: curve = curve_8;
+ if( fish->dir[1] == 1 ) t = ti;
+ break;
+ case 3: curve = curve_3; break;
+ case 6: curve = curve_6; break;
+ case 9: curve = curve_9; break;
+ case 12: curve = curve_12; break;
+ case 7:
+ if( t > curve_7_linear_section )
+ {
+ t -= curve_7_linear_section;
+ t *= (1.0f/(1.0f-curve_7_linear_section));
+
+ curve = cell->state & FLAG_FLIP_FLOP? curve_7: curve_7_1;
+ }
+ else curve = NULL;
+ break;
+ default: curve = NULL; break;