For my multiplayer game, I want random spawning. This is what I'm using:
It doesn't work, but it isn't what I want anyway. How could I make it so that it always spawns a bit above the ground (on the y axis)?
asked Jun 11 '11 at 04:48 AM
first do a raycast toward ground and find it's position and then spawn a litle bit above it. it depends on the pivot of your object too. you should calculate the distance between pivote and bottom of your object and then position it based on that. procedural object placement is a really fun topic.
answered Jun 11 '11 at 05:01 AM