Is there anyway of increasing the strength of the field?
Yes, with the current settings changing the constant INVERSE_GRAVITY will alter the field strength.
For reference, an explanation on the constants:
private static float FIELD_RANGE = 1000f;
This sets at what range the field will begin to have an effect on objects. Depending on the other settings, the effect is likely to be negligible at this distance.
private static float FIELD_STRENGTH = 0.00000005f;
private static float FIELD_STRENGTH_CONSTANT = 6f;
private static float FIELD_STRENGTH_SQUARED = 3f;
These are the original field strength constants and ones for previous implementations I made. They are all unused in this iteration.
private static boolean MUTUAL_GRAVITY = false;
This determines whether the Kurmaraja is affected by the gravitational forces it generates. If so, the force is split depending on the respective masses of the Kurmaraja and what it is affecting. Produces some odd results due to the disproportionate mass of projectiles to ships (missile surfing is quite entertaining
) and the implementation of engine thrust (which negates the force entirely).
private static boolean GRAVITY_PROPORTIONAL_TO_MASS = false;
This determines whether the field operates as a direct reversal of normal gravity (where greater masses generate greater forces) or whether the force is inversely proportional to the objects mass. Given the original function of the field I have it set to the inverse so it is more effective against projectiles and less so against ships.
private static float PROPORTIONAL_GRAVITY = 0.1f;
private static float INVERSE_GRAVITY = 10000f;
These are the field strengths of the proportional to mass and inversely proportional implementations, respectively, and are what you were looking for.
private static float DISTANCE_WEIGHT = 1f;
This is simply a constant to scale the effect of distance to your taste.
I'm not trying to foist this off on anyone, by the way. I simply found the idea of the system intriguing, wanted to test the limits of what could be done with it, and was pleased enough with the result that I wanted to share it.