diff options
author | Nick Samarin <nicks1987@bigmir.net> | 2010-07-15 22:41:29 +0400 |
---|---|---|
committer | Nick Samarin <nicks1987@bigmir.net> | 2010-07-15 22:41:29 +0400 |
commit | 0fbca1dc19afaa034377d5aeed10fa8c25e2a102 (patch) | |
tree | 0cdfcd270bba96ae536f4b91c56da7e73c2d56d7 /source/gameengine/Ketsji/KX_NavMeshObject.h | |
parent | 219e9022b9a2718abbe9bbd61514fcc1b8fa9b73 (diff) |
- added options to enable visualization for obstacle simulation and steering actuator
- added python attributes for parameters of steering actuator
Diffstat (limited to 'source/gameengine/Ketsji/KX_NavMeshObject.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_NavMeshObject.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_NavMeshObject.h b/source/gameengine/Ketsji/KX_NavMeshObject.h index f06cd3b455d..d7b0fe033c2 100644 --- a/source/gameengine/Ketsji/KX_NavMeshObject.h +++ b/source/gameengine/Ketsji/KX_NavMeshObject.h @@ -60,7 +60,9 @@ public: dtStatNavMesh* GetNavMesh(); int FindPath(const MT_Point3& from, const MT_Point3& to, float* path, int maxPathLen); float Raycast(const MT_Point3& from, const MT_Point3& to); - void DrawNavMesh(); + + enum NavMeshRenderMode {RM_WALLS, RM_POLYS, RM_TRIS}; + void DrawNavMesh(NavMeshRenderMode mode); void DrawPath(const float *path, int pathLen, const MT_Vector3& color); MT_Point3 TransformToLocalCoords(const MT_Point3& wpos); @@ -72,7 +74,8 @@ public: KX_PYMETHOD_DOC(KX_NavMeshObject, findPath); KX_PYMETHOD_DOC(KX_NavMeshObject, raycast); - KX_PYMETHOD_DOC_NOARGS(KX_NavMeshObject, draw); + KX_PYMETHOD_DOC(KX_NavMeshObject, draw); + KX_PYMETHOD_DOC_NOARGS(KX_NavMeshObject, rebuild); #endif }; |