instantiate
How to instantiate walls between pillars.First instantiate walls between A and B and then instantiate Band C and then between C and D .I want o use a single wall between A and B .I have a two pillar A and B i want to instantiate a wall between A and B .Player can change the position of the pillar A and B then the new wall should adjust according to that new position of the pilar.
Answer by Kazuva · Aug 08, 2016 at 02:12 PM
i'm not quite sure what you're trying to do , maybe your existing try would've helped to figure it out but .. you could use this to make a wall between 2 pillars
Vector3 A = pillarA.transform.position;
Vector3 B= pillarB.transform.position;
wall.transfor.position = B + ( A -B ) / 2;
Your answer
![](https://koobas.hobune.stream/wayback/20220612090325im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to add gameobjects to a grid? 0 Answers
Networking - How do i spawn an object with client authority? 1 Answer
Spawning limited GameObjects at a specific position not working 1 Answer
spawn object every 10 score points 1 Answer
How do I instantiate an object that does not exist in my scene? 0 Answers