I used some buildings and code from a recent thread:
- The ‘Tree/List Viewer’ in this model colors all the buildings blue except for the one selected by the ‘list idx’ slider, which is displayed in yellow and treated as the one you want to move.
- The ‘X’ and ‘Y’ sliders (blue groups) move the selected building ± the X and Y values.
- If there are no collisions, the moved building is displayed in transparent yellow.
- If there are any collisions, the moved building is displayed in transparent cyan and the buildings it collides with change from deep blue to magenta.