class_collisionshape3d.rst 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/CollisionShape3D.xml.
  6. .. _class_CollisionShape3D:
  7. CollisionShape3D
  8. ================
  9. **Inherits:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A node that provides a :ref:`Shape3D<class_Shape3D>` to a :ref:`CollisionObject3D<class_CollisionObject3D>` parent.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A node that provides a :ref:`Shape3D<class_Shape3D>` to a :ref:`CollisionObject3D<class_CollisionObject3D>` parent and allows to edit it. This can give a detection shape to an :ref:`Area3D<class_Area3D>` or turn a :ref:`PhysicsBody3D<class_PhysicsBody3D>` into a solid object.
  15. \ **Warning:** A non-uniformly scaled **CollisionShape3D** will likely not behave as expected. Make sure to keep its scale the same on all axes and adjust its :ref:`shape<class_CollisionShape3D_property_shape>` resource instead.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Physics introduction <../tutorials/physics/physics_introduction>`
  20. - `3D Kinematic Character Demo <https://godotengine.org/asset-library/asset/2739>`__
  21. - `3D Platformer Demo <https://godotengine.org/asset-library/asset/2748>`__
  22. - `Third Person Shooter (TPS) Demo <https://godotengine.org/asset-library/asset/2710>`__
  23. .. rst-class:: classref-reftable-group
  24. Properties
  25. ----------
  26. .. table::
  27. :widths: auto
  28. +-------------------------------+-----------------------------------------------------------+-----------+
  29. | :ref:`bool<class_bool>` | :ref:`disabled<class_CollisionShape3D_property_disabled>` | ``false`` |
  30. +-------------------------------+-----------------------------------------------------------+-----------+
  31. | :ref:`Shape3D<class_Shape3D>` | :ref:`shape<class_CollisionShape3D_property_shape>` | |
  32. +-------------------------------+-----------------------------------------------------------+-----------+
  33. .. rst-class:: classref-reftable-group
  34. Methods
  35. -------
  36. .. table::
  37. :widths: auto
  38. +--------+---------------------------------------------------------------------------------------------------------------------------+
  39. | |void| | :ref:`make_convex_from_siblings<class_CollisionShape3D_method_make_convex_from_siblings>`\ (\ ) |
  40. +--------+---------------------------------------------------------------------------------------------------------------------------+
  41. | |void| | :ref:`resource_changed<class_CollisionShape3D_method_resource_changed>`\ (\ resource\: :ref:`Resource<class_Resource>`\ ) |
  42. +--------+---------------------------------------------------------------------------------------------------------------------------+
  43. .. rst-class:: classref-section-separator
  44. ----
  45. .. rst-class:: classref-descriptions-group
  46. Property Descriptions
  47. ---------------------
  48. .. _class_CollisionShape3D_property_disabled:
  49. .. rst-class:: classref-property
  50. :ref:`bool<class_bool>` **disabled** = ``false`` :ref:`🔗<class_CollisionShape3D_property_disabled>`
  51. .. rst-class:: classref-property-setget
  52. - |void| **set_disabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  53. - :ref:`bool<class_bool>` **is_disabled**\ (\ )
  54. A disabled collision shape has no effect in the world.
  55. .. rst-class:: classref-item-separator
  56. ----
  57. .. _class_CollisionShape3D_property_shape:
  58. .. rst-class:: classref-property
  59. :ref:`Shape3D<class_Shape3D>` **shape** :ref:`🔗<class_CollisionShape3D_property_shape>`
  60. .. rst-class:: classref-property-setget
  61. - |void| **set_shape**\ (\ value\: :ref:`Shape3D<class_Shape3D>`\ )
  62. - :ref:`Shape3D<class_Shape3D>` **get_shape**\ (\ )
  63. The actual shape owned by this collision shape.
  64. .. rst-class:: classref-section-separator
  65. ----
  66. .. rst-class:: classref-descriptions-group
  67. Method Descriptions
  68. -------------------
  69. .. _class_CollisionShape3D_method_make_convex_from_siblings:
  70. .. rst-class:: classref-method
  71. |void| **make_convex_from_siblings**\ (\ ) :ref:`🔗<class_CollisionShape3D_method_make_convex_from_siblings>`
  72. Sets the collision shape's shape to the addition of all its convexed :ref:`MeshInstance3D<class_MeshInstance3D>` siblings geometry.
  73. .. rst-class:: classref-item-separator
  74. ----
  75. .. _class_CollisionShape3D_method_resource_changed:
  76. .. rst-class:: classref-method
  77. |void| **resource_changed**\ (\ resource\: :ref:`Resource<class_Resource>`\ ) :ref:`🔗<class_CollisionShape3D_method_resource_changed>`
  78. **Deprecated:** Use :ref:`Resource.changed<class_Resource_signal_changed>` instead.
  79. This method does nothing.
  80. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  81. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  82. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  83. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  84. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  85. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  86. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  87. .. |void| replace:: :abbr:`void (No return value.)`