|
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)?
(comments are locked)
|
|
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. Hmm, the object isn't in any particular place. The spawner is just an empty GameObject.
Jun 11 '11 at 05:04 AM
Max 4
(comments are locked)
|
