Transform Move Towards Mouse 2D
Moves a Transform toward the mouse position in world space for 2D gameplay.
Parameters
| Parameter | Description |
|---|---|
| Transform | The Transform to move. |
| Camera | Camera used to project the mouse into world space. |
| Axis | Which axes are allowed to move, usually XY. |
| Smooth Time | Smoothing time in seconds. 0 disables smoothing. |
| Max Speed | Maximum movement speed in units per second. 0 removes the speed cap. |
| Finish Distance | Finishes when the remaining distance is less than this value. Use -1 to never finish. |
| Finished Event | Optional event sent when the move finishes. |
Notes
- This is useful for cursor-following controls and top-down movement systems.