Using game objects to rotate tile

(Luci Fer) #1

I’ve just created my first map with Tiled and I’m importing my map to Unity with an object layer. The objects are there but they don’t seem to be associated with the tile themselves. I can use the transform components to rotate and move the game object in the scene but I was hoping to use a straight wooden tile as a door and on collision rotate the tile and the game object (including its collider) 90 degrees to simulate the door opening.

(Seanba) #2

Are you trying to rotate the TileObject but it’s not working? Can you share the script that is doing that work for you?