Question by
shadowpuppet · Dec 03, 2017 at 07:57 PM ·
rotationtransform.position
transform object to a spawnpoint position and rotation
I'm doing a random generator to place objects at random spawnpoints - without instantiating them because it messes up other scripts. They are in the scene and on Awake they move to whatever random spawnpoint was generated. They move to the position just fine but I also want them to take on the rotation of the spawnpoint. The objects are flat maps that need to be on the wall so if they are rotated incorrectly.....
map1.transform.position = spawnPoint1.position,spawnPoint1.rotation;
Comment
never$$anonymous$$d, I think it is easier to just have all the spawnpoints facing similar..so the maps would appear on the same wall. Like all on a north wall of the room