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