Gets the 2d Velocity of a Game Object and stores it in a Vector2 Variable or each Axis in a Float Variable. NOTE: The Game Object must have a Rigid Body 2D.
Game Object
The GameObject with the Rigidbody2D attached
Vector
The velocity
X
The x value of the velocity
Y
The y value of the velocity
Space
The space reference to express the velocity
Every Frame
Repeat every frame.