first commit
This commit is contained in:
40
include/modules/nav_detour/navmesh.h
Normal file
40
include/modules/nav_detour/navmesh.h
Normal file
@ -0,0 +1,40 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef __NAVMESH__
|
||||
#define __NAVMESH__
|
||||
|
||||
|
||||
namespace GS {
|
||||
namespace Core { class Geometry; }
|
||||
namespace Nav {
|
||||
|
||||
class Mesh
|
||||
{
|
||||
public:
|
||||
|
||||
/// Agent configuration.
|
||||
struct AgentConfig
|
||||
{
|
||||
float height,
|
||||
radius,
|
||||
max_climb;
|
||||
};
|
||||
/// Build configuration.
|
||||
struct BuildConfig
|
||||
{
|
||||
AgentConfig agent;
|
||||
};
|
||||
|
||||
/// Build navigation mesh from configuration.
|
||||
bool Build(const Core::Geometry *, const BuildConfig &);
|
||||
};
|
||||
|
||||
} // Nav
|
||||
} // GS
|
||||
|
||||
|
||||
#endif // __NAVMESH__
|
||||
Reference in New Issue
Block a user