Foreword: I'm a video game developer and writer. This question is about a hypothetical set of physics pertaining to a fictional setting. However, I feel that neither the Game Development StackExchange nor the Worldbuilding StackExchange would be appropriate for this, because it's essentially pure physics (an extension of real physics that happens to not be real). Hopefully this is appropriate here, and if not, I'll try the Math StackExchange.
Anisotropic Gravity
With regards to Newtonian physics, Newton's law of gravitational attraction uses a gravitational constant $G. G$ is isotropic in our universe. For the purposes of a video game I am making, I want to construct a set of physics where Newton's law is a special form of a more general equation, wherein $G$ may have different values along three absolute perpendicular axes of 3-space (i.e. the game's three-dimensional coordinate system), so $G$ is anisotropic in this hypothetical space. Newton's law would thus be a special form where all three values are the same.
So I want to expand Newton's law so that it can calculate the attractive force between two massive objects (I'm currently just working with rigid-body spheres in Unity) on the axes $X$, $Y$, and $Z$, where each axis has a gravitational constant, respectively $G_x,$ $G_y$, and $G_z$. I have tried to do this by applying the formula for the diagonal of a rectangular prism to calculate the distance along each axis and then multiply the square of each by its gravitational constant. Here's one attempt:
$$F = \sqrt{\frac {G_x(m_1m_2)}{r_x^2} + \frac {G_y(m_1m_2)}{r_y^2} + \frac {G_z(m_1m_2)}{r_z^2}}$$
(I apologize for not being familiar with MathJax).
I have run into a problem, however, because I cannot find a way to express the more general equation so that it behaves identically to Newton's law when $G_x$ = $G_y$ = $G_z$. The above expansion does not work. But I feel that an expansion can exist. I recognize that in real space there are no absolute axes, so I think in that case you'd have to use a sort of value-gradient. But for my purposes, three axes are enough.
So, how can I expand Newton's law to account for anisotropic gravity?