Move cursor along fixture edge
Move cursor along fixture edge
Here is a script that moves the cursor along the perimeter of a fixture (polygon, line or loop) by a specified distance. See the comments in the source code for a few places where you can make adjustments:
- Attachments
-
- moveAlongEdge.zip
- (1.64 KiB) Downloaded 1814 times
Re: Move cursor along fixture edge
Cool. Just two comments to script code:
1 In layout.json have "desc": "move along edeg" instead edge. Just typo
2 In four places have local coord (.pos) in code, but script only work correctly for me when I changed this to the world pos (.wpos).
1 In layout.json have "desc": "move along edeg" instead edge. Just typo

2 In four places have local coord (.pos) in code, but script only work correctly for me when I changed this to the world pos (.wpos).
Re: Move cursor along fixture edge
Thanks Alex, nice catch! I spent quite a while making this but completely forgot to check it with a body that was not at 0,0 with angle 0 as well
The file has been fixed.
