Skip to content

Instantly share code, notes, and snippets.

float H = 0.99 ; //resistance to movement, lower more hard to move//
float HH = 0.01 ; //elasticity or bounce factor, higher, more elastic more bounce//
float X[] = new float[Nmax+1] ; float Y[] = new float[Nmax+1] ; float Z[] = new float[Nmax+1] ;
float V[] = new float[Nmax+1] ; float dV[] = new float[Nmax+1] ;
float L ; float R = 2*sqrt((4*PI*(200*200)/Nmax)/(2*sqrt(3))) ;
float Lmin ; int N ; int NN ;
float KX ; float KY ; float KZ ;