TransformModifier
| Quick facts | |
|---|---|
| Class | TransformModifier |
| CellType | Unchanged |
| CellDir | Unchanged |
| CellRotation | Unchanged |
| Bound | Unchanged |
| Properties | Unchanged |
| Requirements | None |
This modifier applies a configurable linear transform to a grid. You can use it to rotate and resize grids.
For example, here it rotates the square grid into diamonds.
squareGrid.Transformed(Matrix4x4.Rotate(Quaternion.Euler(0, 0, 45)))
➡
This modifier can also be applied by extension method Transformed.
Cell co-ordinates
This modifier does not alter cell co-ordinates.