Quantcast
Channel: Latest Questions by alexkaskasoli
Viewing all articles
Browse latest Browse all 56

Instantiating cubes at runtime, align them

$
0
0
I'm making a little game demo where I'm playing around with some ideas. At the moment I'm allowing my player to build his own house in a way very similar to Minecraft. A cube prefab serves as the building block and the user can use his mouse to instantiate a cube wherever the mouse is pointing. This works at the moment but it is very hard to get the cubes aligned properly, to make a "smooth" house. Does anyone have any clues to help me make my blocks "snatch" together (ie: Minecraft building) instead of having them be instantiated exactly where the mouse cursor is pointing.

Viewing all articles
Browse latest Browse all 56

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>