Unity3d Dotween Plugin Tutorial series -Information
1.DOTween Plugin - Introduction (01)
In this tutorial .we are going to see what is the do tween and how to get dotween plugin
1.A tween that takes control of a value and animates it.
2.Its control of a value, takes control of other tweens and animates them as a group.
3.it reduces programming time
4.and its reduces the file size
2.DOTween Plugin -Movement (02)
In this tutorial .we are going to see DoTween Move System
So we are going to cover following types of moves syntax
1.DoMove
2.DoMoveX
3,DoJump
1.DoMove
To move the object relative to x,y and z
Syntax: DOMove(Vector3 to, float duration, bool snapping)
2.DoMoveX
To move the object only on particular position
Syntax: DOMoveX/DOMoveY/DOMoveZ(float to, float duration, bool snapping)
3,DoJump
To make the object jump on according the spot value provided
Syntax: DOJump(Vector3 endValue, float jumpPower, int numJumps, float duration, bool snapping)
Examples
1.DOMove x
Player.transform.DOMove(new Vector3(15, 0, 0), 0.2f);
2.DOMove x,y
Player.transform.DOMove(new Vector3(15, 5, 0), 1.0f);
3.DOMove x
Player.transform.DOMoveX(15, 1.0f);
4.DOMove y
Player.transform.DOMoveY(15, 1.0f);
5.DOMove z
Player.transform.DOMoveZ(15, 1.0f);
6.DOJump
Player.transform.DOJump(vector3), height of the jump, number of jumps, speed, snapping);
Player.transform.DOJump(new Vector3(endpos.transform.position.x, endpos.transform.position.y, endpos.transform.position.z), 5, 4, 2.0f, false);
In this tutorial .we are going to see DoTween Move System
So we are going to cover following types of moves syntax
1.DoMove
2.DoMoveX
3,DoJump
1.DoMove
To move the object relative to x,y and z
Syntax: DOMove(Vector3 to, float duration, bool snapping)
2.DoMoveX
To move the object only on particular position
Syntax: DOMoveX/DOMoveY/DOMoveZ(float to, float duration, bool snapping)
3,DoJump
To make the object jump on according the spot value provided
Syntax: DOJump(Vector3 endValue, float jumpPower, int numJumps, float duration, bool snapping)
Examples
1.DOMove x
Player.transform.DOMove(new Vector3(15, 0, 0), 0.2f);
2.DOMove x,y
Player.transform.DOMove(new Vector3(15, 5, 0), 1.0f);
3.DOMove x
Player.transform.DOMoveX(15, 1.0f);
4.DOMove y
Player.transform.DOMoveY(15, 1.0f);
5.DOMove z
Player.transform.DOMoveZ(15, 1.0f);
6.DOJump
Player.transform.DOJump(vector3), height of the jump, number of jumps, speed, snapping);
Player.transform.DOJump(new Vector3(endpos.transform.position.x, endpos.transform.position.y, endpos.transform.position.z), 5, 4, 2.0f, false);
Unity3d Tutorial-DoTween Plugin | Transform Rotation- 03
Script References:
DORotate
// Player.transform.DORotate(new Vector3(2, -158.32f, 0), 2.5f, RotateMode.Fast);
DOLookAt
// Player.transform.DOLookAt(new Vector3(target.transform.position.x, target.transform.position.y, target.transform.position.z), 1, AxisConstraint.None, Vector3.zero);
DORotate
// Player.transform.DORotate(new Vector3(2, -158.32f, 0), 2.5f, RotateMode.Fast);
DOLookAt
// Player.transform.DOLookAt(new Vector3(target.transform.position.x, target.transform.position.y, target.transform.position.z), 1, AxisConstraint.None, Vector3.zero);
Comments
Post a Comment