2022-04-14 02:22 PM
Hello,
I have a simple rectangle with couple of editable hotspots in 2D, the problem I have is when I drag them in floor plan there is a weird angle working plane. Although the hotspot works as it should be, it doesn't look right when moving it. What could be causing this?
2D Script:
!!========================== HOTSPOT MODULE WIDTH
HOTSPOT2 0, 0, unID, Width, 1+1024
unID = unID+1
HOTSPOT2 Width, 0, unID, Width, 2
unID = unID+1
HOTSPOT2 -1, 0, unID, Width, 3+1024
unID = unID+1
!!========================== HOTSPOT MODULE DEPTH
HOTSPOT2 0, 0, unID, Depth, 1+128
unID = unID+1
HOTSPOT2 Width/2, Depth, unID, Depth, 2
unID = unID+1
HOTSPOT2 0, -1, unID, Depth, 3+128
unID = unID+1
RECT2 0,0, Width, Depth
Master:
unID = 1
Parameter:
VALUES "Width", 0.6, 0.9
VALUES "Depth", 0.3, 0.4, 0.5, 0.6
Juan.
Solved! Go to Solution.
2022-04-14 02:25 PM
Right after asking the question I found the problem.
I had to add the same Width/2 on the other hotspots that controls the depth, like this:
!!========================== HOTSPOT MODULE DEPTH
HOTSPOT2 Width/2, 0, unID, Depth, 1+128
unID = unID+1
HOTSPOT2 Width/2, Depth, unID, Depth, 2
unID = unID+1
HOTSPOT2 Width/2, -1, unID, Depth, 3+128
unID = unID+1
2022-04-14 02:25 PM
Right after asking the question I found the problem.
I had to add the same Width/2 on the other hotspots that controls the depth, like this:
!!========================== HOTSPOT MODULE DEPTH
HOTSPOT2 Width/2, 0, unID, Depth, 1+128
unID = unID+1
HOTSPOT2 Width/2, Depth, unID, Depth, 2
unID = unID+1
HOTSPOT2 Width/2, -1, unID, Depth, 3+128
unID = unID+1