proximity sensor won't detect dummy collection

Typically: "How do I... ", "How can I... " questions
Post Reply
squiq
Posts: 9
Joined: 18 Dec 2014, 15:22

proximity sensor won't detect dummy collection

Post by squiq »

Hi,

Im trying to detect a collection of dummies with a proximity sensor.
When I switch the entity to detect to the dummy collection, it doesn't see anything...

I switched on the detectable property for each dummy, the dummies are clearly visible so the object size is also large enough (proximity sensor is enabled).
If I switch the proximity sensors entity to detect to all detectable objects, it works fine.

What am I missing?

cheers,
squiq

coppelia
Site Admin
Posts: 10366
Joined: 14 Dec 2012, 00:25

Re: proximity sensor won't detect dummy collection

Post by coppelia »

Hello Squiq,

can you post some code, or post the scene?
By the way, a dummy is a point-object. This means that you will only detect it if its center lies in the proximity sensor's detection volume.

Cheers

squiq
Posts: 9
Joined: 18 Dec 2014, 15:22

Re: proximity sensor won't detect dummy collection

Post by squiq »

Hi Coppela,

Thank you for your answer. The dummy is fully in the sensors detection volume.
I send you a PM with a link to the scene.

cheers,

squiq

coppelia
Site Admin
Posts: 10366
Joined: 14 Dec 2012, 00:25

Re: proximity sensor won't detect dummy collection

Post by coppelia »

Ok, checking your scene, you have following problem: your proximity sensor has a volume of type randomized rays, which is not really a volume (but rays randomly sampling the displayed volume). A ray has very very little chances to detect a point, unless it is exactly pointing onto it.

The solution in your case: use a different volume for your proximity sensor (you can change this in the detection volume properties dialog. Make sure to also inspect the other properties of your proximity sensor (e.g. these properties for instance)).

Cheers

squiq
Posts: 9
Joined: 18 Dec 2014, 15:22

Re: proximity sensor won't detect dummy collection

Post by squiq »

Hi,

I did not realize that the randomized ray has such a low scanning frequency.
Everything works fine now with the cylinder type.

I thought I already tried different types but I guess I also changed something else in the meantime.
Anyway, thanks!

Cheers,

squiq

Post Reply