DOMoveY Method
DOMoveY(Rigidbody2D, float, float, bool)
public static TweenerCore<Vector2, Vector2, VectorOptions> DOMoveY(this Rigidbody2D target, float endValue, float duration, bool snapping = false)
Tweens a Rigidbody2D's Y position to the given value. Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
Parameters
targetRigidbody2DendValuefloatThe end value to reach
durationfloatThe duration of the tween
snappingboolIf TRUE the tween will smoothly snap all values to integers
Returns
- TweenerCore<Vector2, Vector2, VectorOptions>