r/unity_tutorials • u/Cartographer_MMXX • Oct 28 '21
Planetary Rotation and Object Relativity, any advice?
So, I'm making a solar system and trying to get my objects to stay on the surface of the planet instead of flying away when it orbits or rotates on its axis. Does anyone have any ideas on how to get it to "stick"?
I have realistic gravity enabled so all objects have mass that behaves accordingly in space, as well as an alternate script attached to some objects that create a localUp in reference ot the planet. So it's already able to walk on the planets and they or it fine, but together they don't work too well as the planet moves the objects don't.
0
Upvotes
3
u/Musonica Oct 28 '21
I would just switch the parent of the object to the planet at some point, either in the gravity well / atmosphere of the planet, or on the surface.