Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
MovementUtil.cpp File Reference
#include "MoveSplineFlag.h"
#include <math.h>
#include <string>
Include dependency graph for MovementUtil.cpp:

Go to the source code of this file.

Namespaces

namespace  Movement

Macros

#define STR(x)

Functions

float Movement::computeFallElevation (float t_passed, bool isSafeFall, float start_velocity=0.0f)
float Movement::computeFallTime (float path_length, bool isSafeFall)
std::string Movement::MovementFlags_ToString (uint32 flags)
std::string Movement::MovementFlagsExtra_ToString (uint32 flags)
template<class Flags, int N>
void Movement::print_flags (Flags t, char const *(&names)[N], std::string &str)

Variables

char const * Movement::g_MovementFlag_names []
char const * Movement::g_MovementFlagExtra_names []
char const * Movement::g_SplineFlag_names [32]
const float Movement::terminal_fallTime = float(terminalVelocity / gravity)
const float Movement::terminal_length = float(terminalVelocity * terminalVelocity) / (2.0f * gravity)
const float Movement::terminal_safeFall_fallTime = float(terminalSafefallVelocity / gravity)
const float Movement::terminal_safeFall_length = (terminalSafefallVelocity * terminalSafefallVelocity) / (2.0f * gravity)
float Movement::terminalSafefallVelocity = 7.0f
float Movement::terminalVelocity = 60.148003f
 Velocity bounds that makes fall speed limited.

Macro Definition Documentation

◆ STR

#define STR ( x)
Value:
#x

Definition at line 75 of file MovementUtil.cpp.