AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Movement::FallInitializer Struct Reference

Public Member Functions

 FallInitializer (float _start_elevation)
 
int32 operator() (Spline< int32 > &s, int32 i)
 

Public Attributes

float start_elevation
 

Detailed Description

Constructor & Destructor Documentation

◆ FallInitializer()

Movement::FallInitializer::FallInitializer ( float  _start_elevation)
inline
95: start_elevation(_start_elevation) {}
float start_elevation
Definition: MoveSpline.cpp:96

Member Function Documentation

◆ operator()()

int32 Movement::FallInitializer::operator() ( Spline< int32 > &  s,
int32  i 
)
inline
98 {
99 return Movement::computeFallTime(start_elevation - s.getPoint(i + 1).z, false) * 1000.f;
100 }
float computeFallTime(float path_length, bool isSafeFall)
Definition: MovementUtil.cpp:36
const Vector3 & getPoint(index_type i) const
Definition: Spline.h:116

References Movement::computeFallTime(), Movement::SplineBase::getPoint(), and start_elevation.

Member Data Documentation

◆ start_elevation

float Movement::FallInitializer::start_elevation

Referenced by operator()().