Hello. I'm working on a project, and this project uses the old version of CoppeliaSim.
The customize script to break the force sensor is "sim.breakForceSensor(inData.handle)"
However, the sim.breakForceSensor is deprecated, and the Regular API Function webpage suggest using sim.setObjectParent instead.
I don't know how to switch from breakForceSensor into setObjectParent. So, I will be very grateful if you guide me in using it. If possible, please provide me with an example. Thanks a lot!!!
Break the force sensor
Re: Break the force sensor
Hello,
in order to mimic a similar behaviour, simply set the parent object of the force/torque sensor to world, i.e.:
Cheers
in order to mimic a similar behaviour, simply set the parent object of the force/torque sensor to world, i.e.:
Code: Select all
sim.setObjectParent(forceSensor, sim.handle_world)