Home »Action Reference»Physics 2d Actions»Set Velocity 2d
Index

Set Velocity 2d

Sets the 2d Velocity of a Game Object. To leave any axis unchanged, set variable to 'None'. NOTE: Game object must have a rigidbody 2D.

Game Object
The GameObject with the Rigidbody2D attached
Vector
The y value of the velocity
X
The y value of the velocity. Overrides 'Vector' x value if set
Y
The y value of the velocity. Overrides 'Vector' y value if set
Every Frame
Repeat every frame.