Collision detection between two objects result hide one object in case of collision

Hi,

I have a project in which I’m moving an object through the scene using Python code (manipulating the x and y values). Now I want the detected object to be hidden when this object touches another object in the scene. I’ve already tried it with PhysX, but I’m not getting anywhere. I start the simulation in USD Composer using Play.