Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Example asteroid configuration syntax for Kopernicus.
- //written by GregroxMun
- //This will not work in-game because I have intentionally left some values blank.
- @Kopernicus:FOR[ExampleAsteroids]
- {
- !Asteroid[Stock]{}
- //deletes the near-Kerbin and Dresteroid belts. You don't have to do this.
- //You can also edit it with
- //@Asteroid[Stock]
- //{
- // stuff
- //}
- Asteroid
- {
- name = MyAsteroids
- //Give it a name to separate it from other asteroid belts.
- interval = 15
- //How often does the game try to spawn asteroids
- minUntrackedLifetime = 1
- maxUntrackedLifetime = 20
- //How long do asteroids last before the tracking station loses them.
- probability = 50
- spawnGroupMinLimit = 3
- spawnGroupMaxLimit = 8
- //When the game spawns asteroids, about how many does it spawn?
- Size
- {
- key = 0 0
- key = 0.3 0.45
- key = 0.7 0.55
- key = 1 1
- }
- //How are the sizes of asteroids distributed?
- //How many small ones versus large ones?
- //I'm not sure exactly how this works.
- Locations
- {
- //Flyby will put the asteroids on a course which will eventually
- //enter the sphere of influence of the planet.
- Flyby
- {
- Body
- {
- name = MyPlanetFlyby
- //name isn't strictly neccesary,
- //but it's always nice to name non-unique nodes.
- //the numbers below are the default for Kerbin's flyby asteroids.
- minDuration = 15
- maxDuration = 60
- //not sure what these do.
- //My guess it's another variation on UntrackedLifetime?
- probability = 66
- //chance that a new asteroid will be spawned here.
- reached = false
- //Do you have to actually go to the planet to detect these asteroids?
- body = MyPlanet
- //they'll fly by a planet with name = MyPlanet
- }
- Body
- {
- name = SecondBody
- body = MyOtherPlanet
- //You can define multiple body nodes.
- }
- }
- Around
- {
- //Around will spawn asteroids in orbit of the planet.
- //Use for Main Asteroid Belts and for diffuse ring systems like Dres'.
- Body
- {
- name = MyPlanetAsteroidRing
- body = MyPlanets
- probability = 33
- //probability of all body nodes between both Around and Flyby should sum to 100.
- //This is probably not neccesary.
- reached = true
- //You do have to actually travel to the planet to see these spawn.
- semiMajorAxis
- {
- minValue =
- maxValue =
- //semiMajorAxis in meters.
- //minValue should equal maxValue if all asteroids share the same period
- //for example if they are trojans or co-orbitals.
- }
- inclination
- {
- minValue =
- maxValue =
- //inclination in degrees.
- }
- eccentricity
- {
- minValue =
- maxValue =
- //eccentricity from 0 to 1.
- //if you have ecc > 1, you need to have a negative semimajor axis.
- //it's just a quirk of hyperbolic orbits.
- //so don't mix eccentricities less than and greater than one.
- //if you want hyperbolic asteroids with eccentricity > 1
- //(like the interstellar interloper 'Oumuamua)
- //define them separately from comets with eccentricity < 1.
- }
- meanAnomalyAtEpoch
- {
- minValue =
- maxValue =
- //Mean anomaly in radians from 0 to 2pi (~6.2832)
- }
- meanAnomalyAtEpochD
- {
- minValue =
- maxValue =
- //mean anomaly in degrees
- //use this OR meanAnomalyAtEpoch, not both.
- //I'm not certain you can use meanAnomalyAtEpochD for asteroids.
- //you can for orbits though.
- }
- longitudeOfAscendingNode
- {
- minValue =
- maxValue =
- //L.A.N. in degrees from 0 to 360.
- }
- argumentOfPeriapsis
- {
- minValue =
- maxValue =
- //argument of periapsis in degrees.
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement