Rigidbody2D Clamp Speed
Clamps Rigidbody2D velocity to a maximum speed.
Parameters
| Parameter | Description |
|---|---|
| Rigidbody2D | The Rigidbody2D to modify. |
| Max Speed | Maximum speed in world units per second. |
Notes
- This is useful for keeping 2D movement from exceeding gameplay limits.