orbiting a craft around a planet 2004-01-26 - By Stephen Guerin
Back Allen,
If you want your craft to simply orbit in a circle, you can make a group and set its parent to the large sphere. Leave the group's position at 0,0,0 which should be the center of the sphere. Then set the parent of your craft to the group and set its position appropriately far away from the group. To orbit, simply rotate the group. As your sphere moves, the group and the craft will follow it.
However, if you want to have elliptical orbits, you may want to do a simple gravitational algorithm where:
forceOnCraft = GravitationalConstant*(massCraft * massSphere)/distance^2
HTH,
-Steve
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|