Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
SmoothTranslatorWrappedv3f Struct Reference

#include <content_cao.h>

+ Inheritance diagram for SmoothTranslatorWrappedv3f:
+ Collaboration diagram for SmoothTranslatorWrappedv3f:

Public Member Functions

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

Additional Inherited Members

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

Member Function Documentation

◆ translate()

void SmoothTranslatorWrappedv3f::translate ( f32 dtime)

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

Referenced by GenericCAO::step().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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