diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-02-10 10:13:26 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-02-10 10:13:26 +0400 |
commit | 372cf9330955c7d7b16529ffc7d39265ada47474 (patch) | |
tree | 1a28773cfdce0f10079cf3b4212dc07cba7c104f /doc/python_api/rst/bge_types/bge.types.KX_NavMeshObject.rst | |
parent | a4a1c667257e493bdeb5354f87083291af122a68 (diff) |
BGE: Splitting up the bge.types docs so they are not all on the same page. This should make them much easier to browse.
Diffstat (limited to 'doc/python_api/rst/bge_types/bge.types.KX_NavMeshObject.rst')
-rw-r--r-- | doc/python_api/rst/bge_types/bge.types.KX_NavMeshObject.rst | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge_types/bge.types.KX_NavMeshObject.rst b/doc/python_api/rst/bge_types/bge.types.KX_NavMeshObject.rst new file mode 100644 index 00000000000..5c73d0aa1d3 --- /dev/null +++ b/doc/python_api/rst/bge_types/bge.types.KX_NavMeshObject.rst @@ -0,0 +1,47 @@ +KX_NavMeshObject(KX_GameObject) +=============================== + +.. module:: bge.types + +base class --- :class:`KX_GameObject` + +.. class:: KX_NavMeshObject(KX_GameObject) + + Python interface for using and controlling navigation meshes. + + .. method:: findPath(start, goal) + + Finds the path from start to goal points. + + :arg start: the start point + :arg start: 3D Vector + :arg goal: the goal point + :arg start: 3D Vector + :return: a path as a list of points + :rtype: list of points + + .. method:: raycast(start, goal) + + Raycast from start to goal points. + + :arg start: the start point + :arg start: 3D Vector + :arg goal: the goal point + :arg start: 3D Vector + :return: the hit factor + :rtype: float + + .. method:: draw(mode) + + Draws a debug mesh for the navigation mesh. + + :arg mode: the drawing mode (one of :ref:`these constants <navmesh-draw-mode>`) + :arg mode: integer + :return: None + + .. method:: rebuild() + + Rebuild the navigation mesh. + + :return: None + |