Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //GETS PLANET DATA FROM PARAMETERS AND SETS THEM TO A GIVEN PLANET
- VOID setNewPlanetDataPara(PLANET *newPlanet, char *name, double px, double py, double vx, double vy, int mass, int life)
- {
- strcpy(newPlanet->name, name);
- newPlanet->px = px;
- newPlanet->py = py;
- newPlanet->vx = vx;
- newPlanet->vy = vy;
- newPlanet->mass = mass;
- newPlanet->life = life;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement