Table of Contents

DORotate Method

Namespace
DG.Tweening

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

Parameters

target Rigidbody2D
endValue float

The end value to reach

duration float

The duration of the tween

Returns

TweenerCore<float, float, FloatOptions>