- Home /
Question by
Korice · Dec 29, 2013 at 12:21 AM ·
instantiateobjectsrender
Objects rendered do not line up perfectly
In my scene I render an identical room north of a room when a door is opened. However, when I create the second room, it is slightly off and not lined up correctly. The coordinates for the new room is:
structureVector = new Vector3(gameObject.transform.position.x, 10, gameObject.transform.position.z + 40);
The second room is in the direction of an increasing z coordinate, and when I create the second room, both rooms have identical x and y coordinates. Since they are created from the same prefab, they should line up correctly.
Here is a picture showing what the disconnect looks like and the coordinates of the rooms:
The room models were created in Cinema 4D by extruding segments from a cube.
Comment
Your answer
Follow this Question
Related Questions
Checking if object intersects? 1 Answer
Make objects spawn 2 Answers
setting variable in game object with instantiated object reference 2 Answers