public void setPhysical ( float inertiaMoment , float alpha , float mB ) { this . inertiaMoment = inertiaMoment >= 0 ? inertiaMoment : this . INERTIA_MOMENT_DEFAULT ; this . alpha = alpha >= 0 ? alpha : ALPHA_DEFAULT ; this . mB = mB >= 0 ? mB : MB_DEFAULT ; }
Use this to set physical properties . Negative values will be replaced by default values