예제 #1
0
 //given a radius in meters, returns Newtons (kg*m/s^2)
 public float ForceOfGravity(float radiusFromCore)
 {
     return(G * MASS_EARTH_IN_KG * theRocket.CurrentRocketMass() / (radiusFromCore * radiusFromCore));
 }
예제 #2
0
 //given a radius in meters, returns Newtons (kg*m/s^2)
 public float ForceOfGravity(float radiusFromCore)
 {
     return(G * tfMass * theRocket.CurrentRocketMass() / (radiusFromCore * radiusFromCore));
 }