Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
SmoothTranslatorWrapped Struct Reference

#include <content_cao.h>

+ Inheritance diagram for SmoothTranslatorWrapped:
+ Collaboration diagram for SmoothTranslatorWrapped:

Public Member Functions

void translate (f32 dtime)
 
- Public Member Functions inherited from SmoothTranslator< f32 >
 SmoothTranslator ()=default
 
void init (f32 current)
 
void update (f32 new_target, bool is_end_position=false, float update_interval=-1)
 
void translate (f32 dtime)
 

Additional Inherited Members

- Public Attributes inherited from SmoothTranslator< f32 >
f32 val_old
 
f32 val_current
 
f32 val_target
 
f32 anim_time
 
f32 anim_time_counter
 
bool aim_is_end
 

Member Function Documentation

◆ translate()

void SmoothTranslatorWrapped::translate ( f32 dtime)

References SmoothTranslator< f32 >::aim_is_end, SmoothTranslator< f32 >::anim_time, SmoothTranslator< f32 >::anim_time_counter, SmoothTranslator< f32 >::val_current, SmoothTranslator< f32 >::val_old, SmoothTranslator< f32 >::val_target, and wrappedApproachShortest().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following files: