class_csgsphere.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CSGSphere.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CSGSphere:
  5. CSGSphere
  6. =========
  7. **Inherits:** :ref:`CSGPrimitive<class_csgprimitive>` **<** :ref:`CSGShape<class_csgshape>` **<** :ref:`VisualInstance<class_visualinstance>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. A CSG Sphere shape.
  12. Member Variables
  13. ----------------
  14. .. _class_CSGSphere_material:
  15. - :ref:`Material<class_material>` **material** - The material used to render the sphere.
  16. .. _class_CSGSphere_radial_segments:
  17. - :ref:`int<class_int>` **radial_segments** - Number of vertical slices for the sphere.
  18. .. _class_CSGSphere_radius:
  19. - :ref:`float<class_float>` **radius** - Radius of the sphere.
  20. .. _class_CSGSphere_rings:
  21. - :ref:`int<class_int>` **rings** - Number of horizontal slices for the sphere.
  22. .. _class_CSGSphere_smooth_faces:
  23. - :ref:`bool<class_bool>` **smooth_faces** - If true the normals of the sphere are set to give a smooth effect making the sphere seem rounded. When false the sphere will have a flat shaded look.
  24. Description
  25. -----------
  26. This node allows you to create a sphere for use with the CSG system.