DOTweenModulePhysics2D Class
public static class DOTweenModulePhysics2D
- Inheritance
-
DOTweenModulePhysics2D
Methods
- DOJump(Rigidbody2D, Vector2, float, int, float, bool)
Tweens a Rigidbody2D'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 Rigidbody2D as the tween's target so it can be used for filtered operations.
IMPORTANT: a rigidbody2D can't be animated in a jump arc using MovePosition, so the tween will directly set the position
- DOLocalPath(Rigidbody2D, Vector2[], float, PathType, PathMode, int, Color?)
Tweens a Rigidbody2D's localPosition through the given path waypoints, using the chosen path algorithm. Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
NOTE: to tween a Rigidbody2D 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.
- DOMove(Rigidbody2D, Vector2, float, bool)
Tweens a Rigidbody2D's position to the given value. Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
- DOMoveX(Rigidbody2D, float, float, bool)
Tweens a Rigidbody2D's X position to the given value. Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
- DOMoveY(Rigidbody2D, float, float, bool)
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
- DOPath(Rigidbody2D, Vector2[], float, PathType, PathMode, int, Color?)
Tweens a Rigidbody2D's position through the given path waypoints, using the chosen path algorithm. Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations.
NOTE: to tween a Rigidbody2D 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(Rigidbody2D, float, float)
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