class_planeshape.rst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/PlaneShape.xml.
  6. .. _class_PlaneShape:
  7. PlaneShape
  8. ==========
  9. **Inherits:** :ref:`Shape<class_Shape>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Infinite plane shape for 3D collisions.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. An infinite plane shape for 3D collisions. Note that the :ref:`Plane<class_Plane>`'s normal matters; anything "below" the plane will collide with it. If the **PlaneShape** is used in a :ref:`PhysicsBody<class_PhysicsBody>`, it will cause colliding objects placed "below" it to teleport "above" the plane.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------+-----------------------------------------------+-------------------------+
  21. | :ref:`Plane<class_Plane>` | :ref:`plane<class_PlaneShape_property_plane>` | ``Plane( 0, 1, 0, 0 )`` |
  22. +---------------------------+-----------------------------------------------+-------------------------+
  23. .. rst-class:: classref-section-separator
  24. ----
  25. .. rst-class:: classref-descriptions-group
  26. Property Descriptions
  27. ---------------------
  28. .. _class_PlaneShape_property_plane:
  29. .. rst-class:: classref-property
  30. :ref:`Plane<class_Plane>` **plane** = ``Plane( 0, 1, 0, 0 )``
  31. .. rst-class:: classref-property-setget
  32. - void **set_plane** **(** :ref:`Plane<class_Plane>` value **)**
  33. - :ref:`Plane<class_Plane>` **get_plane** **(** **)**
  34. The :ref:`Plane<class_Plane>` used by the **PlaneShape** for collision.
  35. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  36. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  37. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  38. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`