mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-31 04:55:48 +00:00
Move Recast configurations into RecastConfig.h
This commit is contained in:
@@ -15,10 +15,12 @@
|
||||
// misrepresented as being the original software.
|
||||
// 3. This notice may not be removed or altered from any source distribution.
|
||||
//
|
||||
|
||||
|
||||
#ifndef RECAST_H
|
||||
#define RECAST_H
|
||||
|
||||
#include "RecastConfig.h"
|
||||
|
||||
/// The value of PI used by Recast.
|
||||
static const float RC_PI = 3.14159265f;
|
||||
|
||||
@@ -262,8 +264,6 @@ struct rcConfig
|
||||
float detailSampleMaxError;
|
||||
};
|
||||
|
||||
/// Defines the number of bits allocated to rcSpan::smin and rcSpan::smax.
|
||||
static const int RC_SPAN_HEIGHT_BITS = 13;
|
||||
/// Defines the maximum value for rcSpan::smin and rcSpan::smax.
|
||||
static const int RC_SPAN_MAX_HEIGHT = (1 << RC_SPAN_HEIGHT_BITS) - 1;
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef RECASTCONFIG_H
|
||||
#define RECASTCONFIG_H
|
||||
|
||||
/// Defines the number of bits allocated to rcSpan::smin and rcSpan::smax.
|
||||
/// If the mesh is appearing below the actual terrain, this parameter may
|
||||
/// need to be increased.
|
||||
static const int RC_SPAN_HEIGHT_BITS = 13;
|
||||
|
||||
#endif // RECASTCONFIG_H
|
||||
Reference in New Issue
Block a user