Advertisement
GregroxMun

Planet Size and Gravity from Radius and Density

Aug 3rd, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. @Kopernicus:FOR[Vernians]
  2. {
  3. Body
  4. {
  5. name = A Realistically Dense Body
  6. template
  7. {
  8. name = Dres
  9. //Placeholder template.
  10. }
  11. RadiusDensity
  12. {
  13. radius = 34482
  14. //radius in meters
  15.  
  16. density = 1.115
  17. //density in g/cm^3
  18.  
  19. SystemScaleMultiplier = 0.1
  20. //Stock is 0.1, RSS is 1, 64K is 0.64, etc.
  21. //Reciprocal of the rescale factor from RSS scale.
  22. }
  23. Properties
  24. {
  25. description = A Realistically Dense Body
  26.  
  27. radius = #$../RadiusDensity/radius$
  28.  
  29. geeASL = 1
  30. @geeASL *= #$../RadiusDensity/radius$
  31. @geeASL /= 6371000
  32. @geeASL *= #$../RadiusDensity/density$
  33. @geeASL /= 5.51
  34. @geeASL /= #$../RadiusDensity/SystemScaleMultiplier$
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement