diff options
author | Nick Samarin <nicks1987@bigmir.net> | 2010-07-10 02:22:51 +0400 |
---|---|---|
committer | Nick Samarin <nicks1987@bigmir.net> | 2010-07-10 02:22:51 +0400 |
commit | 852b84745c60c6b82ededbe00c4906ca8d2f5944 (patch) | |
tree | 61d89922a1ac79e366b8c7d9662388e0156ec096 /source/gameengine/Ketsji/KX_NavMeshObject.h | |
parent | 36e27b07658440117f7bb3dbfee3d5812b6e0e83 (diff) |
Work on conversion of the navigation mesh: we build navmesh directly from blender mesh using custom face data, when no custom data provided we use RAS_MeshObject interface
Diffstat (limited to 'source/gameengine/Ketsji/KX_NavMeshObject.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_NavMeshObject.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_NavMeshObject.h b/source/gameengine/Ketsji/KX_NavMeshObject.h index dff05d32183..f06cd3b455d 100644 --- a/source/gameengine/Ketsji/KX_NavMeshObject.h +++ b/source/gameengine/Ketsji/KX_NavMeshObject.h @@ -44,8 +44,10 @@ protected: dtStatNavMesh* m_navMesh; bool BuildVertIndArrays(RAS_MeshObject* meshobj, float *&vertices, int& nverts, - unsigned short *&faces, int& npolys); - + unsigned short* &polys, int& npolys, unsigned short *&dmeshes, + float *&dvertices, int &ndvertsuniq, unsigned short* &dtris, + int& ndtris, int &vertsPerPoly); + public: KX_NavMeshObject(void* sgReplicationInfo, SG_Callbacks callbacks); ~KX_NavMeshObject(); @@ -61,7 +63,8 @@ public: void DrawNavMesh(); void DrawPath(const float *path, int pathLen, const MT_Vector3& color); - + MT_Point3 TransformToLocalCoords(const MT_Point3& wpos); + MT_Point3 TransformToWorldCoords(const MT_Point3& lpos); #ifndef DISABLE_PYTHON /* --------------------------------------------------------------------- */ /* Python interface ---------------------------------------------------- */ |