Transform Flip Y To Face Direction
Flips a Transform vertically using local scale so it faces a Vector2 direction.
Parameters
| Parameter | Description |
|---|---|
| Transform | The Transform to flip. |
| Direction | The direction to face. |
| Invert | Reverses the facing test if needed. |
Notes
- This is helpful in top-down or vertical gameplay where up/down facing matters.
- Because it uses Transform scale, child objects flip too.