Page 1 of 1

Proximity Sensors Loosing Settings when Copy Pasting

Posted: 02 Nov 2020, 11:52
by lightgear
Morning, I am working on a project where multiple models have a proximity sensor that can only detect one simple cuboid in the scene. I tested my scene with one model and it correctly followed the cuboid however when I copy and pasted the same model the second model did not follow the cuboid.

After looking through my code to no avail I checked the proximity sensor settings of the second model to find that the 'Enity able to detect' had been reset to all models in the scene rather than just the cuboid.

Wondering if this is deliberate in the program or if their is a way to disable this.

Cheers

Re: Proximity Sensors Loosing Settings when Copy Pasting

Posted: 02 Nov 2020, 11:57
by lightgear
I have also found when I transfer DNA of the original Model it resets the Proximity sensor Entity to Detect for all other models.

Re: Proximity Sensors Loosing Settings when Copy Pasting

Posted: 03 Nov 2020, 07:50
by coppelia
Hello,

this is normal if you do not copy-paste the cuboid in the same operation. What happens is following:

sensor --> cuboid

if you copy-paste above two objects at the same time you will get:

sensor2 --> cuboid2

If you only copy-paste the sensor, you will get:

sensor -->

This is an important mechanism, for correctly scaling of the simulation content.

The transfer DNA functionality is there even a bit more tricky, but currently blindly duplicates and renames models. That functionality will however be completely reworked in close future for much better control on what properties are transferred.

Cheers