NAP
Public Member Functions | Public Attributes | List of all members
BaseSmoothOperator Class Reference

#include <smoothdamp.h>

Public Member Functions

 BaseSmoothOperator ()=default
 
 BaseSmoothOperator (float smoothTime)
 
 BaseSmoothOperator (float smoothTime, float maxSpeed)
 
virtual ~BaseSmoothOperator ()=default
 

Public Attributes

float mSmoothTime = 1.0f
 
float mMaxSpeed = math::max<float>()
 

Description

Base class of operator that gradually changes a value towards a desired goal over time

Inheritance diagram for BaseSmoothOperator:
[legend]

Constructor & Destructor Documentation

◆ BaseSmoothOperator() [1/3]

BaseSmoothOperator ( )
default

Default constructor

◆ BaseSmoothOperator() [2/3]

BaseSmoothOperator ( float  smoothTime)

Constructor that takes a smooth time

Parameters
smoothTimethe time in seconds it will take to reach the target

◆ BaseSmoothOperator() [3/3]

BaseSmoothOperator ( float  smoothTime,
float  maxSpeed 
)

Constructor that takes a smooth time and max speed

Parameters
smoothTimethe time in seconds it will take to reach the target
maxSpeedthe maximum blend speed

◆ ~BaseSmoothOperator()

virtual ~BaseSmoothOperator ( )
virtualdefault

Member Data Documentation

◆ mMaxSpeed

float mMaxSpeed = math::max<float>()

◆ mSmoothTime

float mSmoothTime = 1.0f