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