PhysicsMaterial.xml 986 B

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="PhysicsMaterial" inherits="Resource" category="Core" version="3.1.2">
  3. <brief_description>
  4. A material for physics properties.
  5. </brief_description>
  6. <description>
  7. Provides a means of modifying the collision properties of a [PhysicsBody].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="absorbent" type="bool" setter="set_absorbent" getter="is_absorbent">
  15. </member>
  16. <member name="bounce" type="float" setter="set_bounce" getter="get_bounce">
  17. The body's bounciness. Default value: [code]0[/code].
  18. </member>
  19. <member name="friction" type="float" setter="set_friction" getter="get_friction">
  20. The body's friction. Values range from [code]0[/code] (frictionless) to [code]1[/code] (maximum friction). Default value: [code]1[/code].
  21. </member>
  22. <member name="rough" type="bool" setter="set_rough" getter="is_rough">
  23. </member>
  24. </members>
  25. <constants>
  26. </constants>
  27. </class>