I'm building a Reinforcement Learning model to optimize a layout. When the model provides a solution, some of the objects may be overlapped.
Is there a way to create a script to set a binary value when any of the objects in the 3D overlaps? This binary value will be used in the Reward Function to set it to 0 (invalid solution) or 1 (valid solution).