5 suns controlled by spring action

What did you draw?
Post Reply
ahmedkq
Posts: 9
Joined: Sat Feb 15, 2014 5:59 am

5 suns controlled by spring action

Post by ahmedkq »

@ couples of binary stars that revolve around each other and all revolve around big mass making a very beautiful stable art piece

Image



Code: Select all

//Gravity fun at TestTubeGames
_settings(gravity: r^-2+0.5*r, zoom: 1.09, n: 5 suns controlled by spring action);
_type1(m: 10, col: 2, lcol: 3, pic: 0);
_type2(m: 100, col: 2, lcol: 3, pic: 0);
_add(type: 1, x: 0, y: 90, vx: 2, vy: 1, t: 0);
_add(type: 1, x: 0, y: -90, vx: -2, vy: -1, t: 0);
_add(type: 1, x: 90, y: 0, vx: -2, vy: -1, t: 0);
_add(type: 1, x: -90, y: 0, vx: 2, vy: 1, t: 0);
_add(type: 2, x: 0, y: 0, vx: 0, vy: 0, t: 0, nograv);
Post Reply