SphereShape.xml 979 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="SphereShape" inherits="Shape" category="Core" version="3.0.alpha.custom_build">
  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. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_radius" qualifiers="const">
  15. <return type="float">
  16. </return>
  17. <description>
  18. </description>
  19. </method>
  20. <method name="set_radius">
  21. <return type="void">
  22. </return>
  23. <argument index="0" name="radius" type="float">
  24. </argument>
  25. <description>
  26. </description>
  27. </method>
  28. </methods>
  29. <members>
  30. <member name="radius" type="float" setter="set_radius" getter="get_radius">
  31. The sphere's radius. The shape's diameter is double the radius.
  32. </member>
  33. </members>
  34. <constants>
  35. </constants>
  36. </class>