File: negative-spiral.gravitspawn

package info (click to toggle)
gravit 0.5.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,420 kB
  • ctags: 942
  • sloc: ansic: 6,841; makefile: 63; sh: 43
file content (14 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- vim:syntax=lua tabstop=4

load("functions.lua")

function describe()
    log("A spiral galaxy of positive and negative massed particles")
end

function spawn()

	masses = randomfloat(10,1000);
	makespiral(v(0,0,0), v(0,0,0), randomfloat(10,1000), -masses, masses, 0, spawnparticles)
	
end