Table of Contents

DOTweenModulePhysics Class

Namespace
DG.Tweening
public static class DOTweenModulePhysics
Inheritance
DOTweenModulePhysics

Methods

DOJump(Rigidbody, Vector3, float, int, float, bool)

Tweens a Rigidbody's position to the given value, while also applying a jump effect along the Y axis. Returns a Sequence instead of a Tweener. Also stores the Rigidbody as the tween's target so it can be used for filtered operations

DOLocalPath(Rigidbody, Vector3[], float, PathType, PathMode, int, Color?)

Tweens a Rigidbody's localPosition through the given path waypoints, using the chosen path algorithm. Also stores the Rigidbody as the tween's target so it can be used for filtered operations

NOTE: to tween a rigidbody correctly it should be set to kinematic at least while being tweened.

BEWARE: doesn't work on Windows Phone store (waiting for Unity to fix their own bug). If you plan to publish there you should use a regular transform.DOLocalPath.

DOLookAt(Rigidbody, Vector3, float, AxisConstraint, Vector3?)

Tweens a Rigidbody's rotation so that it will look towards the given position. Also stores the rigidbody as the tween's target so it can be used for filtered operations

DOMove(Rigidbody, Vector3, float, bool)

Tweens a Rigidbody's position to the given value. Also stores the rigidbody as the tween's target so it can be used for filtered operations

DOMoveX(Rigidbody, float, float, bool)

Tweens a Rigidbody's X position to the given value. Also stores the rigidbody as the tween's target so it can be used for filtered operations

DOMoveY(Rigidbody, float, float, bool)

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

DOMoveZ(Rigidbody, float, float, bool)

Tweens a Rigidbody's Z position to the given value. Also stores the rigidbody as the tween's target so it can be used for filtered operations

DOPath(Rigidbody, Vector3[], float, PathType, PathMode, int, Color?)

Tweens a Rigidbody's position through the given path waypoints, using the chosen path algorithm. Also stores the Rigidbody as the tween's target so it can be used for filtered operations.

NOTE: to tween a rigidbody correctly it should be set to kinematic at least while being tweened.

BEWARE: doesn't work on Windows Phone store (waiting for Unity to fix their own bug). If you plan to publish there you should use a regular transform.DOPath.

DORotate(Rigidbody, Vector3, float, RotateMode)

Tweens a Rigidbody's rotation to the given value. Also stores the rigidbody as the tween's target so it can be used for filtered operations