Collision detection by python snippets


I am trying to make a function which can return whether the two different box are collided in python file.

And if there is an collision, then I want to reset the scene.

I’ve referenced an example page of IsaacSim Python snippets, but it doesn’t work in my environment.

Is there any example or advice ?

Thank you.

Does the blue box contain a collision API element?
Overlap tests are the proper way of doing it, but the assets need to have a collision defined to them.

Yes, the blue box was also predefined as a collision property.

How can I make some code by using ‘Overlap test’ as you mentioned?

Here’s the snippets for Overlap test: do-overlap-test

This thread also goes over some other considerations on collision check