UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TVerletAttributeInterpolator< NumericType > Class Template Reference

#include <AttributeInterpolator.h>

+ Inheritance diagram for TVerletAttributeInterpolator< NumericType >:

Classes

struct  FSettings
 

Public Member Functions

 TVerletAttributeInterpolator (const FSettings &InSettings)
 
virtual bool IsTypeOf (EAttributeInterpolatorType InType) const override
 
virtual bool IdenticalTo (const TAttributeInterpolator< NumericType > *InOther) const override
 
- Public Member Functions inherited from TAttributeInterpolator< NumericType >
 DECLARE_MULTICAST_DELEGATE_OneParam (FInterpolatorEvent, TOptional< NumericType >)
 
 TAttributeInterpolator ()
 
virtual ~TAttributeInterpolator ()
 
bool IsSet () const
 
void Reset () const
 
bool IsEnabled () const
 
void SetEnabled (bool InEnabled=true)
 
void SetValue (const NumericType &InValue) const
 
void SetValueAndStop (const NumericType &InValue) const
 
const NumericType & Get () const
 
void Tick (float InDeltaTime)
 
double GetOverAllDeltaTime () const
 
void SetDelayOneShot (float InDelay) const
 
void SetTolerance (float InTolerance)
 
FInterpolatorEventOnInterpolationStarted ()
 
FInterpolatorEventOnInterpolationStopped ()
 
bool Equals (const float &InA, const float &InB, double InTolerance)
 
bool Equals (const double &InA, const double &InB, double InTolerance)
 

Protected Member Functions

virtual bool Start () const override
 
virtual bool Restart () const override
 
virtual void Interpolate () const override
 
- Protected Member Functions inherited from TAttributeInterpolator< NumericType >
bool IsPlaying () const
 
virtual bool PlayIfStopped () const
 
virtual bool Stop () const
 

Protected Attributes

FSettings Settings
 
float LastDeltaTime
 
TOptional< NumericType > Velocity
 
- Protected Attributes inherited from TAttributeInterpolator< NumericType >
bool bEnabled
 
float Tolerance
 
TOptional< floatDelay
 
TOptional< floatOverallDeltaTime
 
TOptional< NumericType > InterpolatedValue
 
TOptional< NumericType > LastValue
 
TOptional< NumericType > DesiredValue
 
FInterpolatorEvent InterpolationStarted
 
FInterpolatorEvent InterpolationStopped
 

Additional Inherited Members

- Static Public Member Functions inherited from TAttributeInterpolator< NumericType >
static bool Equals (const NumericType &InA, const NumericType &InB, double InTolerance=0.001)
 

Detailed Description

template<typename NumericType>
class TVerletAttributeInterpolator< NumericType >

A verlet attribute interpolator. Desired values are simulated relying a simple (semi-fake) verlet integration.

Constructor & Destructor Documentation

◆ TVerletAttributeInterpolator()

template<typename NumericType >
TVerletAttributeInterpolator< NumericType >::TVerletAttributeInterpolator ( const FSettings InSettings)
inlineexplicit

Member Function Documentation

◆ IdenticalTo()

template<typename NumericType >
virtual bool TVerletAttributeInterpolator< NumericType >::IdenticalTo ( const TAttributeInterpolator< NumericType > *  InOther) const
inlineoverridevirtual

Compares this interpolator to another one

Parameters
InOtherThe interpolator to compare this one to
Returns
True if the this interpolator is considered identical to the passed one

Implements TAttributeInterpolator< NumericType >.

◆ Interpolate()

template<typename NumericType >
virtual void TVerletAttributeInterpolator< NumericType >::Interpolate ( ) const
inlineoverrideprotectedvirtual

◆ IsTypeOf()

template<typename NumericType >
virtual bool TVerletAttributeInterpolator< NumericType >::IsTypeOf ( EAttributeInterpolatorType  InType) const
inlineoverridevirtual

Returns true if the interpolator is of a given type

Parameters
InTypeThe type to compare agains
Returns
True if the interpolator matches the type

Implements TAttributeInterpolator< NumericType >.

◆ Restart()

template<typename NumericType >
virtual bool TVerletAttributeInterpolator< NumericType >::Restart ( ) const
inlineoverrideprotectedvirtual

◆ Start()

template<typename NumericType >
virtual bool TVerletAttributeInterpolator< NumericType >::Start ( ) const
inlineoverrideprotectedvirtual

Member Data Documentation

◆ LastDeltaTime

template<typename NumericType >
float TVerletAttributeInterpolator< NumericType >::LastDeltaTime
mutableprotected

◆ Settings

template<typename NumericType >
FSettings TVerletAttributeInterpolator< NumericType >::Settings
protected

◆ Velocity

template<typename NumericType >
TOptional<NumericType> TVerletAttributeInterpolator< NumericType >::Velocity
mutableprotected

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