2023-10-03 02:13 PM - last edited on 2024-09-26 01:49 PM by Doreena Deng
The position of the hotspot is always unable to be synchronized with the last object in the array. Please give me some advice from an expert.
Below is the code I wrote
Solved! Go to Solution.
2023-10-03 08:10 PM
Hello @baixiaodong , this is normal behavior because the parameter you are using for your dynamic hotspot is "sl" which is an integer parameter. So it will only increment by 1 in your GDL script, 1 is 1 meter so that's why the dynamic hotspot moves like that.
So the solution would probably to drive the dynamic hotspot with a length parameter and then deduct "sl" from it so you can use it in your loop.
2023-10-03 08:10 PM
Hello @baixiaodong , this is normal behavior because the parameter you are using for your dynamic hotspot is "sl" which is an integer parameter. So it will only increment by 1 in your GDL script, 1 is 1 meter so that's why the dynamic hotspot moves like that.
So the solution would probably to drive the dynamic hotspot with a length parameter and then deduct "sl" from it so you can use it in your loop.