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
proximity sensor won't detect dummy collection
Re: proximity sensor won't detect dummy collection
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
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
Re: proximity sensor won't detect dummy collection
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
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
Re: proximity sensor won't detect dummy collection
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
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
Re: proximity sensor won't detect dummy collection
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
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