- Home /
Question by
tlovidiu · Jan 20, 2013 at 12:43 PM ·
spawnspawnpoints
Spawining objects aligned
I have a spawn point.
From script I make 2 objects instantiate at the spawn point position with the spawn point rotation.
But i want to align them on behind the other, like a truck.
How can I do that?
unity.jpg
(61.1 kB)
Comment
Answer by kru · Jan 22, 2013 at 08:05 AM
Instantiate one object at the point, then instantiate the other object at the point + Vector3.forward*someDistance. Make sure they both have the same rotation quaternion.
Your answer
Follow this Question
Related Questions
How to prevent multiple spawns from a single spawn point? 1 Answer
Network spawning 1 Answer
How do I spawn an object under another moving object at random in C#? 1 Answer
Quaternion.identity problem at random spawn 1 Answer
How do I spawn more the one spawnpoints ramdomly in my scene / Spawning problems 0 Answers