Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMFeedbacksHelpers Class Reference
Inheritance diagram for MoreMountains.Feedbacks.MMFeedbacksHelpers:

Static Public Member Functions

static float Remap (float x, float A, float B, float C, float D)
 Remaps a value x in interval [A,B], to the proportional value in interval [C,D].
static void MigrateCurve (AnimationCurve oldCurve, MMTweenType newTweenType, MMF_Player owner)
 A helper used to migrate values from an AnimationCurve field to a MMTweenType, useful when updating old feedbacks to use them without losing legacy values.

Member Function Documentation

◆ MigrateCurve()

void MoreMountains.Feedbacks.MMFeedbacksHelpers.MigrateCurve ( AnimationCurve oldCurve,
MMTweenType newTweenType,
MMF_Player owner )
static

A helper used to migrate values from an AnimationCurve field to a MMTweenType, useful when updating old feedbacks to use them without losing legacy values.

Parameters
oldCurve
newTweenType
owner

◆ Remap()

float MoreMountains.Feedbacks.MMFeedbacksHelpers.Remap ( float x,
float A,
float B,
float C,
float D )
static

Remaps a value x in interval [A,B], to the proportional value in interval [C,D].

Parameters
xThe value to remap.
Athe minimum bound of interval [A,B] that contains the x value
Bthe maximum bound of interval [A,B] that contains the x value
Cthe minimum bound of target interval [C,D]
Dthe maximum bound of target interval [C,D]

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