public void bob(MowzieModelRenderer box,float speed,float degree,boolean bounce,float f,float f1){
  float bob=(float)(Math.sin(f * speed) * f1 * degree - f1 * degree);
  if (bounce)   bob=(float)-Math.abs((Math.sin(f * speed) * f1 * degree));
  box.rotationPointY+=bob;
}

public void bob ( MowzieModelRenderer box , float speed , float degree , boolean bounce , float f , float f1 ) { float bob = ( float ) ( Math . sin ( f * speed ) * f1 * degree - f1 * degree ) ; if ( bounce ) bob = ( float ) - Math . abs ( ( Math . sin ( f * speed ) * f1 * degree ) ) ; box . rotationPointY += bob ; }
moves a box up and down ( rotationpointy ) . useful for bodies . < p / > note : just keep f and f1 from the setrotationangles ( ) method .
