DORotate Method
DORotate(Rigidbody2D, float, float)
public static TweenerCore<float, float, FloatOptions> DORotate(this Rigidbody2D target, float endValue, float duration)
Tweens a Rigidbody2D's rotation to the given value. Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations