class_shape.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the Shape.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Shape:
  6. Shape
  7. =====
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`BoxShape<class_BoxShape>`, :ref:`CapsuleShape<class_CapsuleShape>`, :ref:`ConcavePolygonShape<class_ConcavePolygonShape>`, :ref:`ConvexPolygonShape<class_ConvexPolygonShape>`, :ref:`CylinderShape<class_CylinderShape>`, :ref:`HeightMapShape<class_HeightMapShape>`, :ref:`PlaneShape<class_PlaneShape>`, :ref:`RayShape<class_RayShape>`, :ref:`SphereShape<class_SphereShape>`
  10. **Category:** Core
  11. Brief Description
  12. -----------------
  13. Base class for all 3D shape resources.
  14. Properties
  15. ----------
  16. +---------------------------+--------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`margin<class_Shape_property_margin>` |
  18. +---------------------------+--------------------------------------------+
  19. Description
  20. -----------
  21. Base class for all 3D shape resources. Nodes that inherit from this can be used as shapes for a :ref:`PhysicsBody<class_PhysicsBody>` or :ref:`Area<class_Area>` objects.
  22. Tutorials
  23. ---------
  24. - :doc:`../tutorials/physics/physics_introduction`
  25. Property Descriptions
  26. ---------------------
  27. .. _class_Shape_property_margin:
  28. - :ref:`float<class_float>` **margin**
  29. +----------+-------------------+
  30. | *Setter* | set_margin(value) |
  31. +----------+-------------------+
  32. | *Getter* | get_margin() |
  33. +----------+-------------------+