Collision solving in a special way

Godot Version

Godot 4.3 mono, stable

Question

As in the image, I want collision solving to always move objects out of the way in a correct direction. In my case, the direction is static and never changes (walls of a closed box) Is it possible to not rely on CCD and setup a one-way collision, that is an actual one-way collision?

box is a rigidbody with four thick walls (actual case is a ball inside a box, escaping it outside. image is a case diagram) that move along the screen with a applied exponential force, like you would do with a pickable object in some of 3d games. Damping is applied, so it does not affect the behavior.

func _physics_process(delta: float) -> void:
	var f = desiredCenter-position
	apply_central_force(10000*f*pow(f.length(),1.2))

If it is not a one checkmark solution, I’m still grateful for help and willing to try.