OptionalbodyPredicate deciding which bodies the field affects. null (default)
means "all dynamic bodies". Static and kinematic bodies are always
skipped (forces have no effect on them anyway).
OptionalenabledWhen false, calls to RadialGravityField.apply are no-ops.
OptionalfalloffFalloff law.
OptionalmaxBodies farther than this from the source receive zero force — useful for bounded gravity wells with hard edges.
OptionalminDistance values used in the falloff calculation are clamped to be at least this — prevents singularities at the source center.
OptionalscaleMultiply the resulting force by body.mass (Newtonian gravity).
OptionalsofteningSoftening epsilon added to d² for the inverse-square falloff (smooths
out near-source spikes without disabling the pull). Has no effect on
other falloff laws.
The field's anchor point. May be a Vec2 (fixed world position — captured
by reference, so mutating it after construction moves the field), or a
Body (the field tracks body.position automatically each step).
Field strength scaling — units depend on falloff (see GravityFalloff).
Configuration options for RadialGravityField.