To make planet objects in the editor, you can use the built in Planet Icon models. They are used in the WOL campaogn. However, they are offsetted. Depending on how much they are scaled up the factors are changing... sort of.
I'm working on a planetarium library with stars, planets and moons (and satellites) wich are orbiting each other, so I had to crack this problem.
To adjust the position of the model you need to use point with polar offset function. Take the "actual" position and offset it with an angle of -56.5 degrees. This is a scale-independent factor. Then comes the tricky part - the distance. It should be 0.52*scaleFactor. So if you scale the model up by a factor 10, you need to offset it by a distance of 5.2.
If you want to attach health and weapons to the planet - you cant make a planet unit and attach things to that. It will look like the shield/target point is somewhere out in space. You need to make a dummy-object that is located at the "actual" position and make the planet model unselectable.
I'l upload the planetarium at some point, if you want to see how such a thing could be built.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
To make planet objects in the editor, you can use the built in Planet Icon models. They are used in the WOL campaogn. However, they are offsetted. Depending on how much they are scaled up the factors are changing... sort of.
I'm working on a planetarium library with stars, planets and moons (and satellites) wich are orbiting each other, so I had to crack this problem.
To adjust the position of the model you need to use point with polar offset function. Take the "actual" position and offset it with an angle of -56.5 degrees. This is a scale-independent factor. Then comes the tricky part - the distance. It should be 0.52*scaleFactor. So if you scale the model up by a factor 10, you need to offset it by a distance of 5.2.
If you want to attach health and weapons to the planet - you cant make a planet unit and attach things to that. It will look like the shield/target point is somewhere out in space. You need to make a dummy-object that is located at the "actual" position and make the planet model unselectable.
I'l upload the planetarium at some point, if you want to see how such a thing could be built.