- Home /
Can a tile move in real time toward a certain position in the scene?
Basically, can I use Vector2.MoveTowards with a tile, even though it's not a gameobject? If not, is there another way I can get it to move in real time towards a specific position?
Answer by hexagonius · Oct 27, 2018 at 02:14 PM
I found this here: https://docs.unity3d.com/Manual/Tilemap-ScriptableTiles-TileData.html
This is the transform matrix used to determine the final location of the Tile. Modify this to add rotations or scaling to the tile.
there is no mentioning the position of the matrix, might work, but I think you'll have to try, maybe its overriden by the engine. I think you need access to the Tile class to get the updated matrix in there:
https://docs.unity3d.com/Manual/Tilemap-ScriptableTiles-Tile.html
Your answer
Follow this Question
Related Questions
How do I make the Collider match the sprite? 2 Answers
Get tile coordinates 1 Answer
How to create animated tile that plays only once 0 Answers
2D Tiles and sprites 1 Answer
Tilemap has gap between tiles, how do I get rid if it. 1 Answer