Files
godot-docs/classes/class_shape.rst
2019-07-29 21:15:14 +02:00

53 lines
1.6 KiB
ReStructuredText

:github_url: hide
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the Shape.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_Shape:
Shape
=====
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
**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>`
**Category:** Core
Brief Description
-----------------
Base class for all 3D shape resources.
Properties
----------
+---------------------------+--------------------------------------------+
| :ref:`float<class_float>` | :ref:`margin<class_Shape_property_margin>` |
+---------------------------+--------------------------------------------+
Description
-----------
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.
Tutorials
---------
- :doc:`../tutorials/physics/physics_introduction`
Property Descriptions
---------------------
.. _class_Shape_property_margin:
- :ref:`float<class_float>` **margin**
+----------+-------------------+
| *Setter* | set_margin(value) |
+----------+-------------------+
| *Getter* | get_margin() |
+----------+-------------------+