Lingwisyer wrote:
Wouldn't you just add a ROT before your length hotspot that references the rotation hotspot?
That is the problem.
The length hotspot can not reference the rotation.
Try this - works fine as two hotspots.
Create a 'length' and 'angle' parameter
HOTSPOT2 0,0, HSID
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 0,0,HSID,angle,6 !centre !!512 flag for clockwise rotation
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 (length-off_angle_hs),0,HSID,angle,4+128 !base
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 (
length*0.9)*COS(angle),(
length*0.9)*SIN(angle),HSID,angle,5 !stretchy hotspot
HSID=HSID+1 !increase ID for next hotspot
ROT2 angle
HOTSPOT2 0,0, HSID, length,1+128 !base
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 length,0, HSID, length,2 !stretchy hotspot
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 -1,0, HSID, length,3 !reference
HSID=HSID+1 !increase ID for next hotspot
LINE2 0,0,length,0
Now change '
length*0.9' in the script to just '
length' or '
length *1.0'
You can still stretch the length but not the angle.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11