Raycast sensor late detecting

Hey there experts,

I am having some issues with the raycast sensor. As it is shown in the video, the sensor does not detect the first part of the block. It starts detecting once the middle of the block is reached. Maybe it is set to detect the origin of the block or something? Does anyone know how to fix it?

Thanks in advance.

Hi,

Try setting sensor’s DetectionContainer to NULL. Then it should pick up the part even if it’s still logically traveling on the previous conveyor’s container. This might effect the sim performance a bit as sensor reacts to everything and not just the parts that are on a certain container. But then you don’t need to worry about these transitions as much.

-k

1 Like

Much better, thanks @keke !
There’s still a little delay between the detection and the trigger in python but I guess that’s due to the sampling time and my script.