- Home /
How to use spherical coordinates in unity?
I found out that spherical coordinates can solve my problem in unity, but I don't know how to use it. How can i use it on a sphere, which is moving around a large sphere. Large sphere is at Vector.zero, while small sphere is on the surface of large sphere. Large sphere is fixed at position. While small sphere moves around it and gravity is changed due to spherical coordinates. How should i do it.
Can you describe your problem a little more? I assume you're looking for more than just the direction of gravity between the two spheres?
Um... if you know how spherical coordinates work, then theres I don't understand how you can't understand how to "use them"...
Spherical Coordinates are defined in the way in which they are used (just look at the wiki article), so if you don't understand how to "use them" I suggest looking up what they are first
It sounds like your problem could be solved much easier by just making a game object with its centre at Vector3.zero and then putting the small sphere inside it and then changing the parents rotation...