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.
 
 
 
 
 

34 lines
810 B

# Two Earth-like planets positioned close together
# Both orbiting Sun
# Positioned within each other's SOI (~9.24e8 meters)
# Expected behavior: Both should continue orbiting Sun (not each other)
[[bodies]]
name = "Sun"
mass = 1.989e30
radius = 6.96e8
position = { x = 0.0, y = 0.0, z = 0.0 }
parent_index = -1
color = { r = 1.0, g = 1.0, b = 0.0 }
eccentricity = 0.0
semi_major_axis = 0.0
[[bodies]]
name = "PlanetA"
mass = 5.972e24
radius = 6.371e6
position = { x = 1.496e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.0, g = 0.8, b = 0.3 }
eccentricity = 0.0
semi_major_axis = 1.496e11
[[bodies]]
name = "PlanetB"
mass = 5.972e24
radius = 6.371e6
position = { x = 1.501e11, y = 0.0, z = 0.0 }
parent_index = 0
color = { r = 0.8, g = 0.8, b = 0.3 }
eccentricity = 0.0
semi_major_axis = 1.501e11