- Home /
Question by
SolidSlish · Aug 16, 2019 at 04:17 PM ·
prefabtilesnapconnect
How to Snap Hallway Tile Prefabs Together Seamlessly so that Don't Overlap?
So I'm making an endless runner game that requires me to spawn the next hallway right in front of the previous one. So for instance, I have this private float tileLength = 15.2486f;. and then it spawns a new one every time in front of the previous tile at that distance. The problem is that no matter how hard I try to make the tiles connect perfectly, they always just slightly overlap, as shown in this picture. How do I prevent this?
connect2.png
(437.3 kB)
connect.png
(243.7 kB)
Comment
Your answer
Follow this Question
Related Questions
How to Use Object Pooling? Is my Script Wrong? 0 Answers
How to change only 1 game object 1 Answer
How to tell the number of instantiated object 2 Answers
How to create tile prefabs? 1 Answer
Editor drag&drop override 1 Answer