TrinityCore
MovementUtil.cpp File Reference
#include "MoveSplineFlag.h"
#include "MovementTypedefs.h"
#include "SmartEnum.h"
#include <cmath>
+ Include dependency graph for MovementUtil.cpp:

Go to the source code of this file.

Namespaces

namespace  Movement
 

Functions

float Movement::computeFallTime (float path_length, bool isSafeFall)
 
float Movement::computeFallElevation (float t_passed, bool isSafeFall, float start_velocity=0.0f)
 
template<class Flags >
void Movement::PrintFlags (Flags t, std::string &str)
 
TC_GAME_API std::string Movement::MovementFlags_ToString (MovementFlags flags)
 
TC_GAME_API std::string Movement::MovementFlags_ToString (MovementFlags2 flags)
 
TC_GAME_API std::string Movement::MovementFlags_ToString (MovementFlags3 flags)
 

Variables

float constexpr Movement::terminalVelocity = 60.148003f
 Velocity bounds that makes fall speed limited. More...
 
float constexpr Movement::terminalSafefallVelocity = 7.0f
 
float constexpr Movement::terminal_length = float(terminalVelocity * terminalVelocity) / (2.0f * gravity)
 
float constexpr Movement::terminal_safeFall_length = (terminalSafefallVelocity * terminalSafefallVelocity) / (2.0f * gravity)
 
float constexpr Movement::terminal_fallTime = float(terminalVelocity / gravity)
 
float constexpr Movement::terminal_safeFall_fallTime = float(terminalSafefallVelocity / gravity)