Godot Version
Godot 4.4
Question
Is it possible to prevent collision forces between two bodies from applying at the moment of a collision? Essentially, what I would like to do is detect when two bodies collide with each other for the first time (such as body_entered), and then apply a collision exception BEFORE they exert any forces on each other. I tried simply applying a collision exception during body_entered (I’m using RigidBody2Ds), but the bodies still apply forces on each other for a single frame rather than moving past each other without any forces being applied.
For my purposes it would be ideal to be able to dynamically prevent collisions prior to the moment they occur, since I want a class of objects to collide/not collide with another class of objects under specific conditions which may change and vary by object.