Place instantiated object directly behind another
I have a top down 3d infinite game. Think Spy Hunter. The camera doesn't move, instead I have instantiated objects spawn out of camera view and move through the camera view. Once out of view the object gets deleted.
What I would like to do is when the object is spawned, it is placed exactly on the tail end of the existing object so there is no gap or overlap. So basically the front of the new object would snap to the back of the object in the camera view.
What are some possibilities to get this done?
Your answer
Follow this Question
Related Questions
How to store a position that is moving to create a prefab to spawn at the exact position 1 Answer
Instantiate prefab if no prefab exists at location 1 Answer
Instantiated prefab has a z-axis of 90 0 Answers
Instantiated prefab trying to keep weird Y position 0 Answers
Convert Local Position To Global on a Child Object 0 Answers