RaTweening 1.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
RaTweening.RaTransform.RaTweenShakePosition Class Reference

A RaTweenShakeBase<TargetT> tween handles the logics of tweening the Shake of the Local Position of a Transform

‍Note: RaTweenUtilExtensions for all extension methods

More...

Inheritance diagram for RaTweening.RaTransform.RaTweenShakePosition:
RaTweening.Core.RaTweenShakeBase< Transform >

Public Member Functions

 RaTweenShakePosition (Transform target, Vector3 shake, float duration, int vibrato=10, float randomness=90f)
 
 RaTweenShakePosition (Transform target, float shake, float duration, int vibrato=10, float randomness=90f, bool ignoreZAxis=true)
 
- Public Member Functions inherited from RaTweening.Core.RaTweenShakeBase< Transform >
 RaTweenShakeBase (TargetT target, Vector3 shake, float duration, int vibrato=10, float randomness=90f)
 
 RaTweenShakeBase (TargetT target, float shake, float duration, int vibrato=10, float randomness=90f, bool ignoreZAxis=true)
 
RaTweenShakeBase< TargetT > SetShake (Vector3 shake)
 The Direction and Strength in which the shake will occur.

‍Note: This overrides the Value Shake set within SetShake(float)

More...
 
RaTweenShakeBase< TargetT > SetShake (float shake, bool ignoreZAxis)
 The Strength in which the shake will occur.

‍Note: This overrides the Directional Shake set within SetShake(Vector3)
Note: Recommended to set ignoreZAxis to True for cameras shaking.

More...
 
RaTweenShakeBase< TargetT > SetVibrato (int vibrato)
 The amount the shake will vibrate.
This will cause a vibration within the shake, else it will be a linear shake More...
 
RaTweenShakeBase< TargetT > SetRandomness (float randomness)
 Adds a random offset to the shake (0 to 180). Setting it to 0 will shake along a single direction.

‍Note: Recommended range is between 0 to 90

More...
 
Type GetTargetTypeRaw ()
 
void SetTargetRaw (object value)
 

Protected Member Functions

override Vector3 ReadValue (Transform target)
 
override RaTweenShakeBase< Transform > RaTweenShakeClone ()
 
override RaTween CreateSectionTween (Transform target, Vector3 end, float duration)
 
- Protected Member Functions inherited from RaTweening.Core.RaTweenShakeBase< Transform >
override void OnSetup ()
 
override void OnStart ()
 
override void OnLoop ()
 
override void OnComplete ()
 
override void ApplyReset (bool resumeAfterReset)
 
override void ApplyRewind (bool inclDelay)
 
override void ResetData ()
 
override void OnSetDuration (float duration)
 
override void SetDefaultValues ()
 
override void Dispose ()
 
override void Evaluate (float normalizedValue)
 
override float CalculateEvaluation ()
 
override RaTweenBase CloneSelf ()
 
abstract RaTween CreateSectionTween (TargetT target, Vector3 end, float duration)
 
abstract Vector3 ReadValue (TargetT target)
 
abstract RaTweenShakeBase< TargetT > RaTweenShakeClone ()
 

Additional Inherited Members

- Properties inherited from RaTweening.Core.RaTweenShakeBase< Transform >
override bool IsValid [get]
 

Detailed Description

A RaTweenShakeBase<TargetT> tween handles the logics of tweening the Shake of the Local Position of a Transform

‍Note: RaTweenUtilExtensions for all extension methods

Member Function Documentation

◆ RaTweenShakeClone()

override RaTweenShakeBase< Transform > RaTweening.RaTransform.RaTweenShakePosition.RaTweenShakeClone ( )
protectedvirtual