Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bge.types.KX_NavMeshObject.rst « bge_types « rst « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5c73d0aa1d32f7ef97882d26445c3d7d532f3813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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