class_collisionpolygon.rst 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .. _class_CollisionPolygon:
  2. CollisionPolygon
  3. ================
  4. **Inherits:** :ref:`Spatial<class_spatial>`
  5. **Category:** Core
  6. Member Functions
  7. ----------------
  8. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+
  9. | void | :ref:`set_build_mode<class_CollisionPolygon_set_build_mode>` **(** :ref:`int<class_int>` build_mode **)** |
  10. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+
  11. | :ref:`int<class_int>` | :ref:`get_build_mode<class_CollisionPolygon_get_build_mode>` **(** **)** const |
  12. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+
  13. | void | :ref:`set_depth<class_CollisionPolygon_set_depth>` **(** :ref:`float<class_float>` depth **)** |
  14. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`get_depth<class_CollisionPolygon_get_depth>` **(** **)** const |
  16. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`set_polygon<class_CollisionPolygon_set_polygon>` **(** :ref:`Vector2Array<class_vector2array>` polygon **)** |
  18. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`Vector2Array<class_vector2array>` | :ref:`get_polygon<class_CollisionPolygon_get_polygon>` **(** **)** const |
  20. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`get_collision_object_first_shape<class_CollisionPolygon_get_collision_object_first_shape>` **(** **)** const |
  22. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`int<class_int>` | :ref:`get_collision_object_last_shape<class_CollisionPolygon_get_collision_object_last_shape>` **(** **)** const |
  24. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------+
  25. Member Function Description
  26. ---------------------------
  27. .. _class_CollisionPolygon_set_build_mode:
  28. - void **set_build_mode** **(** :ref:`int<class_int>` build_mode **)**
  29. .. _class_CollisionPolygon_get_build_mode:
  30. - :ref:`int<class_int>` **get_build_mode** **(** **)** const
  31. .. _class_CollisionPolygon_set_depth:
  32. - void **set_depth** **(** :ref:`float<class_float>` depth **)**
  33. .. _class_CollisionPolygon_get_depth:
  34. - :ref:`float<class_float>` **get_depth** **(** **)** const
  35. .. _class_CollisionPolygon_set_polygon:
  36. - void **set_polygon** **(** :ref:`Vector2Array<class_vector2array>` polygon **)**
  37. .. _class_CollisionPolygon_get_polygon:
  38. - :ref:`Vector2Array<class_vector2array>` **get_polygon** **(** **)** const
  39. .. _class_CollisionPolygon_get_collision_object_first_shape:
  40. - :ref:`int<class_int>` **get_collision_object_first_shape** **(** **)** const
  41. .. _class_CollisionPolygon_get_collision_object_last_shape:
  42. - :ref:`int<class_int>` **get_collision_object_last_shape** **(** **)** const