Highroad Engine v1.3
Public Types | Static Public Member Functions | Static Protected Member Functions | List of all members
MoreMountains.Tools.MMTween Class Reference

The formulas described here are (loosely) based on Robert Penner's easing equations http://robertpenner.com/easing/ I recommend reading this blog post if you're interested in the subject : http://blog.moagrius.com/actionscript/jsas-understanding-easing/ More...

Inheritance diagram for MoreMountains.Tools.MMTween:

Public Types

enum  MMTweenCurve {
  LinearTween , EaseInQuadratic , EaseOutQuadratic , EaseInOutQuadratic ,
  EaseInCubic , EaseOutCubic , EaseInOutCubic , EaseInQuartic ,
  EaseOutQuartic , EaseInOutQuartic , EaseInQuintic , EaseOutQuintic ,
  EaseInOutQuintic , EaseInSinusoidal , EaseOutSinusoidal , EaseInOutSinusoidal ,
  EaseInBounce , EaseOutBounce , EaseInOutBounce , EaseInOverhead ,
  EaseOutOverhead , EaseInOutOverhead , EaseInExponential , EaseOutExponential ,
  EaseInOutExponential , EaseInElastic , EaseOutElastic , EaseInOutElastic ,
  EaseInCircular , EaseOutCircular , EaseInOutCircular , AntiLinearTween ,
  AlmostIdentity
}
 A list of all the possible curves you can tween a value along More...
 

Static Public Member Functions

static float Tween (float currentTime, float initialTime, float endTime, float startValue, float endValue, MMTweenCurve curve)
 Moves a value between a startValue and an endValue based on a currentTime, along the specified tween curve More...
 
static Vector2 Tween (float currentTime, float initialTime, float endTime, Vector2 startValue, Vector2 endValue, MMTweenCurve curve)
 
static Vector3 Tween (float currentTime, float initialTime, float endTime, Vector3 startValue, Vector3 endValue, MMTweenCurve curve)
 
static Quaternion Tween (float currentTime, float initialTime, float endTime, Quaternion startValue, Quaternion endValue, MMTweenCurve curve)
 
static float Tween (float currentTime, float initialTime, float endTime, float startValue, float endValue, AnimationCurve curve)
 
static Vector2 Tween (float currentTime, float initialTime, float endTime, Vector2 startValue, Vector2 endValue, AnimationCurve curve)
 
static Vector3 Tween (float currentTime, float initialTime, float endTime, Vector3 startValue, Vector3 endValue, AnimationCurve curve)
 
static Quaternion Tween (float currentTime, float initialTime, float endTime, Quaternion startValue, Quaternion endValue, AnimationCurve curve)
 
static float Tween (float currentTime, float initialTime, float endTime, float startValue, float endValue, MMTweenType tweenType)
 
static Vector2 Tween (float currentTime, float initialTime, float endTime, Vector2 startValue, Vector2 endValue, MMTweenType tweenType)
 
static Vector3 Tween (float currentTime, float initialTime, float endTime, Vector3 startValue, Vector3 endValue, MMTweenType tweenType)
 
static Quaternion Tween (float currentTime, float initialTime, float endTime, Quaternion startValue, Quaternion endValue, MMTweenType tweenType)
 
static Coroutine MoveTransform (MonoBehaviour mono, Transform targetTransform, Vector3 origin, Vector3 destination, WaitForSeconds delay, float delayDuration, float duration, MMTween.MMTweenCurve curve, bool ignoreTimescale=false)
 
static Coroutine MoveRectTransform (MonoBehaviour mono, RectTransform targetTransform, Vector3 origin, Vector3 destination, WaitForSeconds delay, float delayDuration, float duration, MMTween.MMTweenCurve curve, bool ignoreTimescale=false)
 
static Coroutine MoveTransform (MonoBehaviour mono, Transform targetTransform, Transform origin, Transform destination, WaitForSeconds delay, float delayDuration, float duration, MMTween.MMTweenCurve curve, bool updatePosition=true, bool updateRotation=true, bool ignoreTimescale=false)
 
static Coroutine RotateTransformAround (MonoBehaviour mono, Transform targetTransform, Transform center, Transform destination, float angle, WaitForSeconds delay, float delayDuration, float duration, MMTween.MMTweenCurve curve, bool ignoreTimescale=false)
 

Static Protected Member Functions

static IEnumerator MoveRectTransformCo (RectTransform targetTransform, Vector3 origin, Vector3 destination, WaitForSeconds delay, float delayDuration, float duration, MMTween.MMTweenCurve curve, bool ignoreTimescale=false)
 
static IEnumerator MoveTransformCo (Transform targetTransform, Vector3 origin, Vector3 destination, WaitForSeconds delay, float delayDuration, float duration, MMTween.MMTweenCurve curve, bool ignoreTimescale=false)
 
static IEnumerator MoveTransformCo (Transform targetTransform, Transform origin, Transform destination, WaitForSeconds delay, float delayDuration, float duration, MMTween.MMTweenCurve curve, bool updatePosition=true, bool updateRotation=true, bool ignoreTimescale=false)
 
static IEnumerator RotateTransformAroundCo (Transform targetTransform, Transform center, Transform destination, float angle, WaitForSeconds delay, float delayDuration, float duration, MMTween.MMTweenCurve curve, bool ignoreTimescale=false)
 

Detailed Description

The formulas described here are (loosely) based on Robert Penner's easing equations http://robertpenner.com/easing/ I recommend reading this blog post if you're interested in the subject : http://blog.moagrius.com/actionscript/jsas-understanding-easing/

Member Enumeration Documentation

◆ MMTweenCurve

A list of all the possible curves you can tween a value along

Enumerator
LinearTween 
EaseInQuadratic 
EaseOutQuadratic 
EaseInOutQuadratic 
EaseInCubic 
EaseOutCubic 
EaseInOutCubic 
EaseInQuartic 
EaseOutQuartic 
EaseInOutQuartic 
EaseInQuintic 
EaseOutQuintic 
EaseInOutQuintic 
EaseInSinusoidal 
EaseOutSinusoidal 
EaseInOutSinusoidal 
EaseInBounce 
EaseOutBounce 
EaseInOutBounce 
EaseInOverhead 
EaseOutOverhead 
EaseInOutOverhead 
EaseInExponential 
EaseOutExponential 
EaseInOutExponential 
EaseInElastic 
EaseOutElastic 
EaseInOutElastic 
EaseInCircular 
EaseOutCircular 
EaseInOutCircular 
AntiLinearTween 
AlmostIdentity 

Member Function Documentation

◆ MoveRectTransform()

static Coroutine MoreMountains.Tools.MMTween.MoveRectTransform ( MonoBehaviour  mono,
RectTransform  targetTransform,
Vector3  origin,
Vector3  destination,
WaitForSeconds  delay,
float  delayDuration,
float  duration,
MMTween.MMTweenCurve  curve,
bool  ignoreTimescale = false 
)
static

◆ MoveRectTransformCo()

static IEnumerator MoreMountains.Tools.MMTween.MoveRectTransformCo ( RectTransform  targetTransform,
Vector3  origin,
Vector3  destination,
WaitForSeconds  delay,
float  delayDuration,
float  duration,
MMTween.MMTweenCurve  curve,
bool  ignoreTimescale = false 
)
staticprotected

◆ MoveTransform() [1/2]

static Coroutine MoreMountains.Tools.MMTween.MoveTransform ( MonoBehaviour  mono,
Transform  targetTransform,
Transform  origin,
Transform  destination,
WaitForSeconds  delay,
float  delayDuration,
float  duration,
MMTween.MMTweenCurve  curve,
bool  updatePosition = true,
bool  updateRotation = true,
bool  ignoreTimescale = false 
)
static

◆ MoveTransform() [2/2]

static Coroutine MoreMountains.Tools.MMTween.MoveTransform ( MonoBehaviour  mono,
Transform  targetTransform,
Vector3  origin,
Vector3  destination,
WaitForSeconds  delay,
float  delayDuration,
float  duration,
MMTween.MMTweenCurve  curve,
bool  ignoreTimescale = false 
)
static

◆ MoveTransformCo() [1/2]

static IEnumerator MoreMountains.Tools.MMTween.MoveTransformCo ( Transform  targetTransform,
Transform  origin,
Transform  destination,
WaitForSeconds  delay,
float  delayDuration,
float  duration,
MMTween.MMTweenCurve  curve,
bool  updatePosition = true,
bool  updateRotation = true,
bool  ignoreTimescale = false 
)
staticprotected

◆ MoveTransformCo() [2/2]

static IEnumerator MoreMountains.Tools.MMTween.MoveTransformCo ( Transform  targetTransform,
Vector3  origin,
Vector3  destination,
WaitForSeconds  delay,
float  delayDuration,
float  duration,
MMTween.MMTweenCurve  curve,
bool  ignoreTimescale = false 
)
staticprotected

◆ RotateTransformAround()

static Coroutine MoreMountains.Tools.MMTween.RotateTransformAround ( MonoBehaviour  mono,
Transform  targetTransform,
Transform  center,
Transform  destination,
float  angle,
WaitForSeconds  delay,
float  delayDuration,
float  duration,
MMTween.MMTweenCurve  curve,
bool  ignoreTimescale = false 
)
static

◆ RotateTransformAroundCo()

static IEnumerator MoreMountains.Tools.MMTween.RotateTransformAroundCo ( Transform  targetTransform,
Transform  center,
Transform  destination,
float  angle,
WaitForSeconds  delay,
float  delayDuration,
float  duration,
MMTween.MMTweenCurve  curve,
bool  ignoreTimescale = false 
)
staticprotected

◆ Tween() [1/12]

static float MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
float  startValue,
float  endValue,
AnimationCurve  curve 
)
static

◆ Tween() [2/12]

static float MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
float  startValue,
float  endValue,
MMTweenCurve  curve 
)
static

Moves a value between a startValue and an endValue based on a currentTime, along the specified tween curve

Parameters
currentTime
initialTime
endTime
startValue
endValue
curve
Returns

◆ Tween() [3/12]

static float MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
float  startValue,
float  endValue,
MMTweenType  tweenType 
)
static

◆ Tween() [4/12]

static Quaternion MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
Quaternion  startValue,
Quaternion  endValue,
AnimationCurve  curve 
)
static

◆ Tween() [5/12]

static Quaternion MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
Quaternion  startValue,
Quaternion  endValue,
MMTweenCurve  curve 
)
static

◆ Tween() [6/12]

static Quaternion MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
Quaternion  startValue,
Quaternion  endValue,
MMTweenType  tweenType 
)
static

◆ Tween() [7/12]

static Vector2 MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
Vector2  startValue,
Vector2  endValue,
AnimationCurve  curve 
)
static

◆ Tween() [8/12]

static Vector2 MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
Vector2  startValue,
Vector2  endValue,
MMTweenCurve  curve 
)
static

◆ Tween() [9/12]

static Vector2 MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
Vector2  startValue,
Vector2  endValue,
MMTweenType  tweenType 
)
static

◆ Tween() [10/12]

static Vector3 MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
Vector3  startValue,
Vector3  endValue,
AnimationCurve  curve 
)
static

◆ Tween() [11/12]

static Vector3 MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
Vector3  startValue,
Vector3  endValue,
MMTweenCurve  curve 
)
static

◆ Tween() [12/12]

static Vector3 MoreMountains.Tools.MMTween.Tween ( float  currentTime,
float  initialTime,
float  endTime,
Vector3  startValue,
Vector3  endValue,
MMTweenType  tweenType 
)
static

The documentation for this class was generated from the following file: