"Drop" Component

Hi there,

is there a possibility to release a component a Robot has grabbed via pickMovingPart to the world? The only 2 methods i can find in vcHelpers.Robot2 are releaseAllComponents and releaseComponent, but they both require a component to attach the released component. I would like the component to be dropped just into the world and disappear.

I tried calling a subroutine which would release the component, but it seems like the pickMovingPart method puts the component somewhere where the subroutine can’t reach it.

Thanks for your help!

Best regards


you could use the releaseComponent()-method and as Node argument you can use the property World of the vcSimulation instance.

sim = getSimulation()