At the moment, I am creating a jetway based on motors and constraints. It works by having a sliding section that can adjust to make the jetway longer when it has to reach a plane that is farther out. Here’s a picture:
Each of the sections is unanchored, and welded amongst itself. I connect the two sections by using a Prismatic constraint that connects the center part of each section on a line. The Prismatic Constraint, however, does not like it when it’s moved with a motor. The jetway also rotates side to side, and up and down, so here’s what happens at the moment when the jetway starts to move:
https://gyazo.com/f429a84aba1ae509b50544cfb2975af3.gif
Obviously, I don’t want this to happen, so I plan to fix it with a Weld (the new kind that can be enabled/disabled). I’ll disable the weld when the bridge is extending, but I’ll enable it when the AlignPosition reaches it’s destination. If this sounds confusing, I’ll attach a gif here of how the bridge extends:
https://gyazo.com/2e31197f8eb76b8e98010fd2e65ad47b.gif
https://gyazo.com/163d3759659689357b3026579641a215.gif
The way I plan to fix this glitch is with a hack, by actually welding Section2 to Section1 when it’s not expanding or retracting. In order to do this I’d need to be able to tell with an API when the AlignPosition reaches the position of the Part. I thought about using the part’s Velocity, but that changes when the jetway is rotating too, so that would not be an option. Thanks, and I hope this is useful to others too!
-bigcrazycarboy