I have a physics based train simulator in development, and would like to know if there is a way I can snap my track pieces together so they are exactly in line. As currently if they are not in-line, then it can cause it to derail as it would in real life. Is there a plug-in for this?
It is very possible if you use scripting to accomplish this, as for plugins… Uh besides resize align that can only align parts, there are no such features.
For scripting, I’d start off with a for loop to check previous/next track to align and then make a region3 the bounding box of the model, instance a part to act as a hitbox and a primaryPart. Then I’d make the previous/next track to join surface with it. By that you need to check the angle between the two surfaces that are going to ‘merge’. By measuring the delta of this gap created by the angle you’ll also get a direction. Now you can move the model by using the delta and the direction.
I can’t give you more guidance than that, hopefully you can understand that. This is some pretty complicated code, so it would be best if you can ask someone to do this for you. If this method is not for you, then I’d go back to plan B and manually align the parts with (resize align) by @stravant
There is a plugin made by NWSpacek called ‘TrackSnap’. It requires each section to have a node at each end of the track (and it must be precise) so the plugin can snap the sections together.
Most beginners on roblox do not use grid, and therefore having a model snapped perfectly is impossible them. The issue at hand is that he is looking for a solution that can both accurately and speed up the process of this aligning. Suggesting something he already knows is not intuitive.
Grid has VERY MUCH to do with the transform tool. If you know what grid is, it is the increment of which how much you can scale, move and rotate. Transform tool is using this increment to determine how much to iterate the object.
Yes, it is counterintuitive when learning this tool is not directly solving the issue.