#Part snapping system.

1 messages · Page 1 of 1 (latest)

burnt depot
#

I'm trying to create a game with rockets where you have a parts list you pick from and they each snap together (like kerbal space program and plane crazy) and I have the placing system down but I cannot figure out for the life of me how to make them snap together.

steady willow
#

Welds?

burnt depot
#

I guess so, I'm not a very experienced or talented scripter but like plane crazy or kerbal space program where parts attach at a snap point

dim willow
#

Ok so this is how you can do this

#

@burnt depot for every single part you have 4 properties or 6 depending on how you rotate a part in your game: up, down, left, right, back, front. Now, you put the middle of those sides as the property. Next, detect when the part touches another part, check which side touched which, then set the position of the parts so the touching sides are locked together and anchor the parts.