GregroxMun

Black Hole/Size Pseudocode

Aug 4th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. Black Hole Mass/Size pseudocode.
  2.  
  3. Option 1: Simple Scale.
  4. -1/10th scale, 1/100th mass version of a real black hole, consistent with the stock system.
  5.  
  6. Option 2: c/G based scale.
  7. -Inputs:
  8. --Sigma Dimensions Resize factor
  9. --Sigma Dimensions geeASL factor
  10. --RemoteTech c OR user-defined c.
  11. --Black Hole Mass.
  12.  
  13. Swarzchild = 2(ScaledG * BlackHoleMass)/(ScaledC)^2
  14.  
  15. //ScaledG should represent the constant of gravity such that the surface gravity of planets is preserved for bodies which are a certain amount smaller when rescaled.
  16. ScaledG = (RealG * SDgeeASL)/(SDresize)
  17.  
  18. ScaledC = read from RemoteTech settings OR user-defined config file. Default is 3E+08 m/s, aligning with the default used by RemoteTech.
  19.  
  20. //Speeds of light faster than 1c are probably only ever used as a gameplay "cheat," so it's best to disregard that from the standpoint of worldbuilding.
  21. If ScaledC > 3E+8 m/s, set ScaledC to 3E+8 m/s.
Advertisement
Add Comment
Please, Sign In to add comment