![]() |
Blender V2.61 - r43446
|
#include "MEM_guardedalloc.h"#include "BLI_math_vector.h"#include "KX_NavMeshObject.h"#include "RAS_MeshObject.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "BKE_scene.h"#include "BKE_customdata.h"#include "BKE_cdderivedmesh.h"#include "BKE_DerivedMesh.h"#include "BKE_navmesh_conversion.h"#include "KX_PythonInit.h"#include "KX_PyMath.h"#include "Value.h"#include "Recast.h"#include "DetourStatNavMeshBuilder.h"#include "KX_ObstacleSimulation.h"Go to the source code of this file.
Functions | |
| static void | calcMeshBounds (const float *vert, int nverts, float *bmin, float *bmax) |
| void | flipAxes (float *vec) |
| KX_PYMETHODDEF_DOC (KX_NavMeshObject, findPath,"findPath(start, goal): find path from start to goal points\n""Returns a path as list of points)\n") | |
| KX_PYMETHODDEF_DOC (KX_NavMeshObject, raycast,"raycast(start, goal): raycast from start to goal points\n""Returns hit factor)\n") | |
| KX_PYMETHODDEF_DOC (KX_NavMeshObject, draw,"draw(mode): navigation mesh debug drawing\n""mode: WALLS, POLYS, TRIS\n") | |
| KX_PYMETHODDEF_DOC_NOARGS (KX_NavMeshObject, rebuild,"rebuild(): rebuild navigation mesh\n") | |
Variables | |
| static const int | MAX_PATH_LEN = 256 |
| static const float | polyPickExt [3] = {2, 4, 2} |
| static void calcMeshBounds | ( | const float * | vert, |
| int | nverts, | ||
| float * | bmin, | ||
| float * | bmax | ||
| ) | [static] |
Definition at line 55 of file KX_NavMeshObject.cpp.
References i.
Referenced by KX_NavMeshObject::BuildNavMesh().
| void flipAxes | ( | float * | vec | ) | [inline] |
Definition at line 72 of file KX_NavMeshObject.cpp.
References swap().
Referenced by KX_NavMeshObject::BuildNavMesh(), KX_NavMeshObject::DrawNavMesh(), KX_NavMeshObject::FindPath(), getNavmeshNormal(), and KX_NavMeshObject::Raycast().
| KX_PYMETHODDEF_DOC | ( | KX_NavMeshObject | , |
| draw | , | ||
| "draw(mode): navigation mesh debug drawing\n""mode: | WALLS, | ||
| POLYS | , | ||
| TRIS\n" | |||
| ) |
Definition at line 702 of file KX_NavMeshObject.cpp.
| KX_PYMETHODDEF_DOC | ( | KX_NavMeshObject | , |
| raycast | , | ||
| "raycast(start, goal): raycast from start to goal points\n""Returns hit | factor | ||
| ) |
Definition at line 688 of file KX_NavMeshObject.cpp.
References NULL.
| KX_PYMETHODDEF_DOC | ( | KX_NavMeshObject | , |
| findPath | , | ||
| "findPath(start, goal): find path from start to goal points\n""Returns a path as list of | points | ||
| ) |
Definition at line 665 of file KX_NavMeshObject.cpp.
References i, MAX_PATH_LEN, and NULL.
| KX_PYMETHODDEF_DOC_NOARGS | ( | KX_NavMeshObject | , |
| rebuild | , | ||
| "rebuild(): rebuild navigation mesh\n" | |||
| ) |
Definition at line 714 of file KX_NavMeshObject.cpp.
Referenced by KX_SoundActuator::Update().
const int MAX_PATH_LEN = 256 [static] |
Definition at line 52 of file KX_NavMeshObject.cpp.
Referenced by KX_PYMETHODDEF_DOC(), and KX_NavMeshObject::Raycast().
const float polyPickExt[3] = {2, 4, 2} [static] |
Definition at line 53 of file KX_NavMeshObject.cpp.
Referenced by KX_NavMeshObject::FindPath(), getNavmeshNormal(), and KX_NavMeshObject::Raycast().