Replicator with physics

Hey
I want to make a script that simulates droping objects to a surface but I run into a problem that the droping parts just spread randomly to place where they shouldnt go

here’s my script for it
with rep.new_layer():
SHAKER = ‘/isaac-sim/Documents/flexi.usd’
CONNECTOR = ‘/isaac-sim/Documents/PROPS’

def create_shaker():
    shaker = rep.create.from_usd(SHAKER)
    with shaker:
        rep.modify.pose(position=(0, 0, 0))
    return shaker.node

def connector(size=5):
    connector = rep.randomizer.instantiate(rep.utils.get_usd_files(CONNECTOR, recursive=True), size=size, mode='scene_instance')
    with connector:
        rep.modify.pose(
            position=rep.distribution.uniform(
                (-0.13, -0.09, 0.1),
                (0.13, 0.09, 0.3)
            ),
            rotation=rep.distribution.uniform(
                (-360, -360, -360),
                (360, 360, 360)
            )
        )
    return connector.node

rep.randomizer.register(create_shaker)
rep.randomizer.register(connector)

with rep.trigger.on_time(interval=1, max_execs=10):
    rep.randomizer.create_shaker()
    rep.randomizer.connector()

and video what happens