Jump to content

fluoZor

Members
  • Posts

    9
  • Joined

  • Last visited

Reputation

0 Neutral

Profile Information

  • About me
    Bottle Rocketeer
  1. You should use displacement modifiers with multires to get some more geometry on there, othar than that it is really solid render.
  2. I know it is not totally accurate but for my use, i do well enough using this method and forcing the craft into same position and speed on the end of each orbit to keep it from going too far. I am making space RTS with semi realistic orbit mechanics and try to avoid having too complex calculations for the units.
  3. I am sorry everyone, the problem i had here was simply that i had too big numbers in these calculations, i compensated every number down and now have correct orbits. Thanks for the help.
  4. I am just trying to have an simple satellite orbiting one domain object, so the latter
  5. I actually think i have found the problem here, which is that the program was cutting corners and variables got overflown and the program counted errors. Now i either need a better way of simulating this or some good way to cut down the numbers and have it still work rather same.
  6. The problematic thing is, that this is everything that there is to it at this state, there is just a static planet and an orbiter that only does get its speed at the start and counts the gravity to itself and applies its acceleration.
  7. I did the things above and this still doesn't seem right at the moment i have no idea what force or variable i have forgot to account for
  8. Okay, i shall now explain the system i have used more clearly. Because of the simple nature of this i use two components to represent to motion on the 2D coordinate system, these are hspeed for horizontal speed and vspeed for vertical speed. In the beginning of the program i have hspeed on the value of 0.7 so that the craft will have its motion to keep it on the orbit. Every step of the program i calculate the gravitational force and calculate its components and just simply add the components of the hspeed and vspeed variable. Using these hspeed and vspeed variables i move the spaceship every step. This is the code i use to calculate the gravitational force: grav=((Gcon*Mse*(5.9*10^24))/(distance_to_point(earth.x,earth.y)*50)^2) Gcon is the gravitational constant and Mse is the mass of the craft.
  9. Hello, i have been trying to program REALLY simple simulation of an orbit, i currently just use a simple kinectic energy vector that i give originally some speed and then i just proceed to add the force of gravity to it on every step. Only problem i have with this system is that orbit is always centered on the domain body and there seem to be 2 apoapses and 2 periapses, like this What force or variable have i failed to account for when this always keeps happening?
×
×
  • Create New...