vibe coding an orbital mechanics simulation to try out claude code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

62 lines
1.3 KiB

# Binary Star System with Planets
# A simple example of two stars orbiting each other with planets around them
[[bodies]]
name = "StarA"
mass = 1.5e30
radius = 8.0e8
position = { x = 3.0e11, y = 0.0, z = 0.0 }
parent_index = -1
color = { r = 1.0, g = 1.0, b = 0.2 }
eccentricity = 0.0
semi_major_axis = 0.0
[[bodies]]
name = "StarB"
mass = 1.2e30
radius = 7.0e8
position = { x = -3.7e11, y = 0.0, z = 0.0 }
parent_index = -1
color = { r = 0.3, g = 0.5, b = 1.0 }
eccentricity = 0.0
semi_major_axis = 0.0
[[bodies]]
name = "PlanetA1"
mass = 6.0e24
radius = 7.0e6
position = { x = 3.5e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.8, g = 0.3, b = 0.2 }
eccentricity = 0.0
semi_major_axis = 3.5e11
[[bodies]]
name = "PlanetB1"
mass = 4.0e24
radius = 6.0e6
position = { x = -4.2e11, y = 0.0, z = 0.0 }
parent_index = 1
color = { r = 0.2, g = 0.8, b = 0.6 }
eccentricity = 0.0
semi_major_axis = 4.2e11
[[bodies]]
name = "MoonA1"
mass = 1.0e23
radius = 2.0e6
position = { x = 3.52e11, y = 0.0, z = 0.0 }
parent_index = 2
color = { r = 0.7, g = 0.7, b = 0.7 }
eccentricity = 0.0
semi_major_axis = 3.52e11
[[bodies]]
name = "PlanetA2"
mass = 8.0e24
radius = 8.0e6
position = { x = 4.0e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.5, g = 0.6, b = 0.3 }
eccentricity = 0.0
semi_major_axis = 4.0e11