class_cylindershape3d.rst 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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/CylinderShape3D.xml.
  6. .. _class_CylinderShape3D:
  7. CylinderShape3D
  8. ===============
  9. **Inherits:** :ref:`Shape3D<class_Shape3D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Cylinder shape for 3D collisions.
  11. Description
  12. -----------
  13. Cylinder shape for collisions. Like :ref:`CapsuleShape3D<class_CapsuleShape3D>`, but without hemispheres at the cylinder's ends.
  14. \ **Performance:** Being a primitive collision shape, ``CylinderShape3D`` is fast to check collisions against (though not as fast as :ref:`SphereShape3D<class_SphereShape3D>`). ``CylinderShape3D`` is also more demanding compared to :ref:`CapsuleShape3D<class_CapsuleShape3D>`.
  15. Tutorials
  16. ---------
  17. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  18. - `3D Physics Tests Demo <https://godotengine.org/asset-library/asset/675>`__
  19. - `3D Voxel Demo <https://godotengine.org/asset-library/asset/676>`__
  20. Properties
  21. ----------
  22. +---------------------------+------------------------------------------------------+---------+
  23. | :ref:`float<class_float>` | :ref:`height<class_CylinderShape3D_property_height>` | ``2.0`` |
  24. +---------------------------+------------------------------------------------------+---------+
  25. | :ref:`float<class_float>` | :ref:`radius<class_CylinderShape3D_property_radius>` | ``0.5`` |
  26. +---------------------------+------------------------------------------------------+---------+
  27. Property Descriptions
  28. ---------------------
  29. .. _class_CylinderShape3D_property_height:
  30. - :ref:`float<class_float>` **height**
  31. +-----------+-------------------+
  32. | *Default* | ``2.0`` |
  33. +-----------+-------------------+
  34. | *Setter* | set_height(value) |
  35. +-----------+-------------------+
  36. | *Getter* | get_height() |
  37. +-----------+-------------------+
  38. The cylinder's height.
  39. ----
  40. .. _class_CylinderShape3D_property_radius:
  41. - :ref:`float<class_float>` **radius**
  42. +-----------+-------------------+
  43. | *Default* | ``0.5`` |
  44. +-----------+-------------------+
  45. | *Setter* | set_radius(value) |
  46. +-----------+-------------------+
  47. | *Getter* | get_radius() |
  48. +-----------+-------------------+
  49. The cylinder's radius.
  50. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  51. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  52. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  53. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  54. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  55. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`