Skip to content

Rigidbody2D Set Speed

Manually set the Rigidbody2D speed in world units per second, preserving the current movement direction.

Parameter Description
Rigidbody2D The Rigidbody2D
Speed Set the speed in world units per second.

Note: If the current speed is zero this action does nothing.