public override void FixedUpdate(TimeStep timeStep) { if (Parent == null) { OrbitHelper.TraceSpaceCraft(this, OrbitTrace); } }
Vector3 VectorForUnity(DataRow row) { Vector3Double vec = OrbitHelper.OrbitalStateVectors(GetDouble(row[2]), GetDouble(row[3]), GetDouble(row[4]), GetDouble(row[5]), GetDouble(row[6]), GetDouble(row[8]));//Calculations.CalculateOrbitalPosition(GetDouble(row[2]), GetDouble(row[3]), GetDouble(row[4]), GetDouble(row[5]), GetDouble(row[6]), GetDouble(row[8])); Vector3 v = (vec / div).ToFLoat(); return(v); }
public Europa(DVector2 parentPositon, DVector2 parentVelocity) : base(OrbitHelper.FromJplEphemeris(6.156481591252791E+05, 2.501017249378511E+05) + parentPositon, OrbitHelper.FromJplEphemeris(-5.263255140302287E+00, 1.282255171501272E+01) + parentVelocity, new EuropaKernel()) { }
public Saturn() : base(OrbitHelper.FromJplEphemeris(-3.667006922888632E+08, -1.455132410758398E+09), OrbitHelper.FromJplEphemeris(8.836135826121589E+00, -2.389892378353466E+00), new SaturnKernel()) { }
public Venus() : base(OrbitHelper.FromJplEphemeris(-7.107549422541827E+07, -8.069630266378376E+07), OrbitHelper.FromJplEphemeris(2.601196797328043E+01, -2.332263510301460E+01), new VenusKernel()) { }
public Sun() : base(OrbitHelper.FromJplEphemeris(5.432947986595253E+05, 4.730052562792657E+05), OrbitHelper.FromJplEphemeris(-2.899962878525558E-03, 1.198996655704255E-02), new SunKernel()) { }
public Saturn() : base(OrbitHelper.GetPosition(1.3526e12, 1.6132416870058, DVector2.Zero), OrbitHelper.GetVelocity(1.3526e12, 1.6132416870058, -1.018e4, DVector2.Zero), new SaturnKernel()) { }
public Earth(double inclination) : base(OrbitHelper.FromJplEphemeris(1.470669705624798E+08, -3.465263667484938E+07), OrbitHelper.FromJplEphemeris(6.445708901348731E+00, 2.887242866160539E+01), new EarthKernel()) { this.inclination = Math.Cos(inclination * MathHelper.DegreesToRadians);; }
public Jupiter() : base(OrbitHelper.GetPosition(7.405736e11, 0.25750325984, DVector2.Zero), OrbitHelper.GetVelocity(7.405736e11, 0.25750325984, -1.372e4, DVector2.Zero), new JupiterKernel()) { }
public Mercury() : base(OrbitHelper.FromJplEphemeris(5.246226302537809E+07, -2.527033713925028E+07), OrbitHelper.FromJplEphemeris(1.211166887870701E+01, 4.586947862338018E+01), new MercuryKernel()) { }
public Moon(DVector2 positionOffset, DVector2 velocityOffset) : base(OrbitHelper.GetPosition(3.63295e8, 0.2967059, positionOffset), OrbitHelper.GetVelocity(3.63295e8, 0.2967059, -1076.0, velocityOffset), new MoonKernel()) { }
public Mars() : base(OrbitHelper.FromJplEphemeris(1.186183757284019E+08, -1.722428244606592E+08), OrbitHelper.FromJplEphemeris(2.091501229864822E+01, 1.576687031430872E+01), new MarsKernel()) { }
public Venus() : base(OrbitHelper.GetPosition(1.07477e11, 2.29568357, DVector2.Zero), OrbitHelper.GetVelocity(1.07477e11, 2.29568357, -3.526e4, DVector2.Zero), new VenusKernel()) { }
public Mercury() : base(OrbitHelper.GetPosition(4.6001200e10, 1.35187, DVector2.Zero), OrbitHelper.GetVelocity(4.6001200e10, 1.35187, -5.898e4, DVector2.Zero), new MercuryKernel()) { }
public Earth() : base(OrbitHelper.GetPosition(1.47095e11, 1.7967674211, DVector2.Zero), OrbitHelper.GetVelocity(1.47095e11, 1.7967674211, -3.029e4, DVector2.Zero), new EarthKernel()) { }
public Ganymede(DVector2 parentPositon, DVector2 parentVelocity) : base(OrbitHelper.FromJplEphemeris(-9.194475286771294E+05, -5.471806593872152E+05) + parentPositon, OrbitHelper.FromJplEphemeris(5.585068938118295E+00, -9.333406535151921E+00) + parentVelocity, new GanymedeKernel()) { }
public Jupiter() : base(OrbitHelper.FromJplEphemeris(-8.140496172394816E+08, -2.921133413936896E+07), OrbitHelper.FromJplEphemeris(3.165828961330318E-01, -1.243819908039714E+01), new JupiterKernel()) { }
public Moon(DVector2 parentPositon, DVector2 parentVelocity) : base(OrbitHelper.FromJplEphemeris(-1.275488485528684E+05, -3.756609087364946E+05) + parentPositon, OrbitHelper.FromJplEphemeris(9.291844409239249E-01, -2.857101216046916E-01) + parentVelocity, new MoonKernel()) { }
public Mars() : base(OrbitHelper.GetPosition(2.067e11, 5.865019079167, DVector2.Zero), OrbitHelper.GetVelocity(2.067e11, 5.865019079167, -2.65e4, DVector2.Zero), new MarsKernel()) { }
public override void FixedUpdate(TimeStep timeStep) { OrbitHelper.TraceMassiveBody(this, OrbitTrace); }
public Callisto(DVector2 parentPositon, DVector2 parentVelocity) : base(OrbitHelper.FromJplEphemeris(-1.838974425381978E+06, 4.612334321076249E+05) + parentPositon, OrbitHelper.FromJplEphemeris(-1.996468410126901E+00, -7.894863713236139E+00) + parentVelocity, new CallistoKernel()) { }
public Earth() : base(OrbitHelper.FromJplEphemeris(1.470669705624798E+08, -3.465263667484938E+07), OrbitHelper.FromJplEphemeris(6.445708901348731E+00, 2.887242866160539E+01), new EarthKernel()) { }
public Io(DVector2 parentPositon, DVector2 parentVelocity) : base(OrbitHelper.FromJplEphemeris(-4.187887882620349E+05, -3.532782596227979E+04) + parentPositon, OrbitHelper.FromJplEphemeris(1.513295262903566E+00, -1.731988564333744E+01) + parentVelocity, new IoKernel()) { }