Andr3wHur5t Posted January 8, 2010 Share Posted January 8, 2010 i am trying to make a dinamic soler syatem in le edtor and have no idea how i would make a orbit falow a orbit that falowess a nother orbit that falows another orbt. sun->plnet->moon->moon's moon Quote Tools: AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro Programing & Scripting Languages: C |C++ | C# | Obj-C | LUA | Javascript | PHP | Ruby Link to comment Share on other sites More sharing options...
Rick Posted January 8, 2010 Share Posted January 8, 2010 parent things to each other. Put a pivot in the center of the sun that is the parent to a planet. Then when you rotate that pivot the planet will go with it around the sun. Then put another pivot in the center of the planet and make that the parent to the moon and when you rotate that pivot the moon will do with it, etc etc. This will probably require some lua scripting though. 1 Quote Link to comment Share on other sites More sharing options...
Andr3wHur5t Posted January 8, 2010 Author Share Posted January 8, 2010 ok i do that, thanks Quote Tools: AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro Programing & Scripting Languages: C |C++ | C# | Obj-C | LUA | Javascript | PHP | Ruby Link to comment Share on other sites More sharing options...
Laurens Posted January 8, 2010 Share Posted January 8, 2010 If you parent your bodies you will only have geostationary orbits (and movement in perfect circles) which celestial bodies do not. Ofcourse, if you are not looking for that kind of realism than parenting works fine. Quote Link to comment Share on other sites More sharing options...
Pixel Perfect Posted January 8, 2010 Share Posted January 8, 2010 The fact that the pivots are parented to the sun or the planets does not preclude having independant rotational speed of the satelite objects to the objects they are orbiting as you can develop maths fairly easily to rotate an object about a given point in space (i.e. the pivot points). However, as Laurens points out you wont get elliptical orbits using this method alone. I had a play around with the idea of a solar pool game in the early days of Leadwerks and had planets on a pool table with orbiting satelites that you could roll down the table as the moons revolved on a constant plane. [edit] I found a vid I made of it at the time: Old Solar Pool Demo I abandoned it at the time because of problems with the physics and moved onto other things. 1 Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++ Link to comment Share on other sites More sharing options...
Jardar Posted January 8, 2010 Share Posted January 8, 2010 by paranting a planet to the pivot of the sun would keep the planet from spinning right? You would get a planet orbiting the sun but with only one side facing the sun at all times correct? maybe a way to solve this would be to place a pivot in the sun, a pivot in the planet, and ball socket the planet to it's pivot? Thus you could in addition rotate the planet as it is orbiting the sun? I could be wrong, perhaps making no sense, and perhaps it would be better to use animated textures to make the planet "look" like it is rotating instead. Anyways that was my thoughts on the matter. 1 Quote Win7: 3.4GHz i7, 16Gb RAM DDR3, Radeon HD 6970 2048MB Link to comment Share on other sites More sharing options...
Rick Posted January 9, 2010 Share Posted January 9, 2010 Just rotate the planet model if you want that to rotate. The pivot you place inside the sun is rotating which rotates the planet around the sub. Then just rotate the planet. They the be rotated at different speeds. Quote Link to comment Share on other sites More sharing options...
Paul Thomas Posted January 9, 2010 Share Posted January 9, 2010 To mimic our moon use pointentity(moon, planetpivot) Doing a solar system (or multiple solar systems) would be really fun to play around with in LE. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.