Rigidbody2D Set Speed
Sets the speed of a Rigidbody2D while keeping its current movement direction.
Parameters
| Parameter | Description |
|---|---|
| Rigidbody2D | The Rigidbody2D to modify. |
| Speed | Speed in world units per second. |
Notes
- If the Rigidbody2D is not moving, the action does nothing because there is no direction to preserve.