mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-25 16:14:37 +01:00
- Paths are generated automatically during map loading, for any map - Bots can take path that requires climbing ladders (can climb ladders) - Bots can take path that requires jump (like the ledge on Stalingrad) - Bots will try to avoid obstacles in front of them by navigating on the side The old navigation system with pathnodes can still be used with `g_navigation_legacy 1`
22 lines
629 B
C
22 lines
629 B
C
/**
|
|
@defgroup detour Detour
|
|
|
|
Members in this module are wrappers around the standard math library
|
|
*/
|
|
|
|
#ifndef DETOURMATH_H
|
|
#define DETOURMATH_H
|
|
|
|
#include <math.h>
|
|
|
|
inline float dtMathFabsf(float x) { return fabsf(x); }
|
|
inline float dtMathSqrtf(float x) { return sqrtf(x); }
|
|
inline float dtMathFloorf(float x) { return floorf(x); }
|
|
inline float dtMathCeilf(float x) { return ceilf(x); }
|
|
inline float dtMathCosf(float x) { return cosf(x); }
|
|
inline float dtMathSinf(float x) { return sinf(x); }
|
|
inline float dtMathAtan2f(float y, float x) { return atan2f(y, x); }
|
|
inline bool dtMathIsfinite(float x) { return isfinite(x); }
|
|
|
|
#endif
|