Changed Detour header var names more to verbose. Pass params as a struct to dtCreateNavMeshData. Named Off-mesh links to Off-mesh connections. Cleaned up Off-mesh connection code and samples. Added connection radius and direction to Off-mesh connections. Agent dimensions passed store in navmesh header.

This commit is contained in:
Mikko Mononen
2010-01-19 14:22:48 +00:00
parent da9dec1eef
commit 3abbfe006d
24 changed files with 7358 additions and 3099 deletions

View File

@@ -23,6 +23,7 @@
#include "InputGeom.h"
#include "Recast.h"
#include "RecastDebugDraw.h"
#include "DetourDebugDraw.h"
#include "imgui.h"
#include "SDL.h"
#include "SDL_opengl.h"
@@ -32,6 +33,11 @@
#endif
void DebugDrawGL::depthMask(bool state)
{
glDepthMask(state ? GL_TRUE : GL_FALSE);
}
void DebugDrawGL::begin(duDebugDrawPrimitives prim, float size)
{
switch (prim)
@@ -76,6 +82,7 @@ void DebugDrawGL::end()
Sample::Sample() :
m_geom(0),
m_navMesh(0),
m_navMeshDrawFlags(DU_DRAWNAVMESH_CLOSEDLIST),
m_tool(0)
{
resetCommonSettings();