Hello guys,
I want to make a prototype where you can build your rocket (like Kerbal ), but it’s the first time that i try to do something like this.
Any tips?
The only thing that I could think on is: vertex snapping in-game? Or using joints…
Thanks!
i would create each piece that you could add to the rocket as a prefab, and each prefab you put in empty gameobjects to mark the points and areas that are connectable. you would give each prefab a “snap_zone” script of some sort that holds all such game objects in an array that can then be accessed by other prefab’s snapping scripts.
actually you could create different types of snap objects, like using empties to represent single snap points, and objects with colliders to represent areas. basically you would build child gameobjects to form the bounding boxes of the spaceship part, and those gameobjects would be looked at by other spaceship-part prefabs to figure out where they can go.