SphereShape.xml 720 B

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="SphereShape" inherits="Shape" version="3.4">
  3. <brief_description>
  4. Sphere shape for 3D collisions.
  5. </brief_description>
  6. <description>
  7. Sphere shape for 3D collisions, which can be set into a [PhysicsBody] or [Area]. This shape is useful for modeling sphere-like 3D objects.
  8. </description>
  9. <tutorials>
  10. <link title="3D Physics Tests Demo">https://godotengine.org/asset-library/asset/675</link>
  11. </tutorials>
  12. <methods>
  13. </methods>
  14. <members>
  15. <member name="radius" type="float" setter="set_radius" getter="get_radius" default="1.0">
  16. The sphere's radius. The shape's diameter is double the radius.
  17. </member>
  18. </members>
  19. <constants>
  20. </constants>
  21. </class>